Files
magpie/docs
yetone afe0c59d2d gui: on a Mac window a popover that opens upward stops under the traffic lights, not over them (#1573, lyston11)
In a short Mac window, Pick (an agent's model list), the field picker
(#pop) and every app menu (placeMenu) were held only 8px from the top
when they opened upward or were held to the window's top, so they
covered the traffic lights and header.top, which the system draws them
over.

popTop(pad) is now the highest a popover's top edge may go: 8px under
header.top's measured bottom on a Mac window (so it follows --zoom), and
8px from the top everywhere else, as before. openAgentModels, placePop
and placeMenu use it in place of pad for the top. placePop also holds
#pop's max-height to the room between that edge and the foot when its
CSS max-height doesn't fit, so a picker held to the top scrolls inside
itself instead of running off the bottom (it already did run off before
this change in a very short window; moving the edge down would have
made that worse). Nothing else clamps a popover to the top: the
remaining getBoundingClientRect placements (profiles in the panel, the
heat-map tip, the rail tip) are kept inside their own card or panel.

Run:
- new internal/gui/tests/popover-mac-chrome.test.cjs: Chromium and
  WebKit, en and zh, MacIntel and Win32, 480px wide: 8/8 pass, 4 runs in
  a row. On the old app.js it fails (model list top 8 < 58 on Mac, the
  picker off the bottom on Windows). Breaking each placer by hand turns
  it red on its own: model list top 8, picker top 8, menu top 17.
- related GUI tests, Chromium and WebKit, all pass: click-scroll,
  agent-models, agent-models-picker, -all-hidden, -loading, -only-picked,
  -redraw, agent-model-groups, menu-scroll, proto-menu-overflow,
  codex-app-menu-cap, desktop-model-menu, editor-short-window,
  removed-groups-menu-scroll, agent-start-pick, agent-leave-magpie,
  claude-picker-fold, header-zoom-fit, header-centre, text-size.
- HOME=<scratch> go test -tags nogui ./internal/gui: ok.
- GOOS=linux and GOOS=windows go vet -tags nogui ./internal/gui: ok.
2026-10-11 12:32:32 +08:00
..