Files
magpie/internal/gui/assets/plugins/sessions
yetone 0d99261dcc sessions: the page leads to Settings › Privacy's session history
Which agents' session history magpie reads is set in Settings › Privacy,
and the Sessions page it is about led there only through its first ask's
words (the scattered settings audit after netube99 on X). Its head now has
a Settings › that opens Privacy at those rows, lit, with Back to Sessions.
Gateway mode reads no agent's history and has no such rows, so no link.

Two things it found on the way:
- Privacy's session-history rows are drawn again when their read comes
  back (loadSessionReads), which took the light off a row a link had just
  lit; in Chromium it was gone before it showed. The redraw now keeps the
  light on the row at the same place.
- The link takes ~70px of the head (en), and eight agents' tabs, which
  fit a 1200px page (面条 on Discord), had 34px to spare. The search
  now gives way to the tabs, down to its 110px least, before the agent
  menu takes them; a narrow window's grid head is as before. The fit
  watches the head, not the tabs' box the search's width changes, so no
  ResizeObserver loop.

New test sessions-to-settings.test.cjs: the link's words, inside the head,
over nothing, the page fits; it lights Privacy's row; Back returns to
Sessions; none in gateway mode. Every language, Chromium and WebKit, at
1100 and 420 wide. sessions-toolbar now counts the link among the head's
controls that must fit.

Run on mote: every Sessions GUI file (13), gateway-conversations,
gateway-mode-sessions, i18n-keys and settings-back: 192 of 192.
Broken by hand: without the link, sessions-to-settings red; without the
redraw keeping the light, red in Chromium (timeout on the lit row);
without the search giving way, sessions-toolbar red ("a wide window keeps
the one-click agent tabs").
Not tried: the real app window.
2026-11-10 02:33:07 +08:00
..