mobile-web's desktop comparison leaves out the footer #1302 added and
compares the rest shifted down by its height. It shifted whole rows, so
at 1280, where main now shows the sidebar beside the list, every sidebar
label below the footer's top (Gateway, Usage, Plugins, Settings) was
compared with what sits 36px lower: ~1800 pixels apart, en and zh, both
engines. Only the footer's own columns move now.
Run: mobile-web, 30/30 in Chromium and WebKit (en and zh, 900 and 1280
and the phone widths). With whole rows shifted again, en 1280 and zh 1280
fail in both engines; saved screenshots showed every differing pixel at
x < 100, the sidebar.
Users who use a few agents had to hide the others one row menu at a time,
and disconnecting doesn't help: most are unconnected already. The Agents
list's footer now has Manage beside the fold control (shown even when
nothing is folded). Its dialog lists every agent, folded and hidden ones
too, with search by name or id, select or invert the search results,
select the unconnected ones, and clear. Hide selected / Unhide selected
save one arrangement each through the existing POST /api/agents/arrange,
keeping the order and every agent outside the selection; a failed save
keeps the selection for a retry. While it saves, Done, Escape and the
backdrop can't close it, and a state read that left before the save can't
put the old arrangement back (agentsVisibilityRevision). Nothing connects,
disconnects or edits an agent's files; the tray panel is unchanged.
Strings in en, zh, zh-TW, ja and de. docs/subsystems/gui-shell.md says
how it works. mobile-web's desktop comparison leaves the new footer out
while the baseline hasn't it.
Squashed from PR head 2a24d59e onto main, without the PR's unrelated
parts: the plugins.js search redraw and its plugin-market test change,
the purpose-filter and redact-rule-row test workarounds (main fixed those
flakes at their cause), and a .warm-at input min-width. Conflicts: load()
keeps main's reads with the PR's revision guard, i18n.js and app.css keep
both sides, the gui-shell doc keeps main's window-corners note.
Run (both engines; every agent* test, gui-de/ja/zh-tw, i18n-keys,
mobile-web, panel-fold, library-mcp-tools, click-scroll): 516 pass. Two
webkit zh-TW agent-failover failures were ENOSPC launching the browser
and pass on a rerun. mobile-web's 1280 comparison and a narrow-width
measure in agent-bulk-visibility needed fixes, in the next two commits.
Broken by hand: without closeConfirmAsk's saving guard, "saving blocks
Escape and backdrop" fails (success and failure); without the
visibilitySince block in load(), "an older state read cannot undo a
completed bulk save" fails.
Not tried: the real app with real agents.
mobile-web.test.cjs had 18 failures on main, from two causes.
Phone widths (both engines): fc5dfa3c6 (#1397) moved omp's subagents,
smol and slow roles into one square, as Claude Code's tiers are, on
purpose. The test still clicked a field per role, which no longer
exist. It now opens the "tiers" square once for them. The app is right.
Desktop comparison (WebKit): the original page's icons came after the
screenshot. The fake server ran one `git show` per BASE_REF asset (~100
of them), each blocking it, and WebKit fetches a CSS mask's picture only
when it paints it, so a screenshot could be the first paint. Since
7a926dd3c Providers shows two OpenAI marks, which put the gap over the
300px limit (338 pixels). BASE_REF's assets are now read in one
`git cat-file --batch`; go() waits until nothing has been served for
150ms and two frames; screenshots are retaken until two in a row match.
Run: with every icon delayed 1500ms (ICON_DELAY), the old test fails in
webkit and the new one passes 7/7, twice. mobile-web.test.cjs undelayed
in chromium and webkit (phone widths, en and zh as the file covers).
- The opened row follows the boards: what to do in the agent, running copies with the old list, Claude Code's tiers (each with its own effort beside its model again, #536), the model list by whose models they are with what's hidden, the model new sessions start on, what connecting costs (Gemini's Google sign-in), and the files put back on disconnect, shown line by line.
- Disconnecting asks first and shows the lines it puts back. Secrets are masked, and a config of tens of thousands of lines diffs in a fraction of a second.
- Connecting prefers the agent's own subscription when magpie serves it (Claude, Codex).
- The dry run goes through proc.
- Every model hidden still keeps the row connected, with the way back to the list (#356).
- Routing groups are named in Chinese.
- Phone widths: the pickers and squares wrap inside the opened row, and the name stays beside its logo.
GUI tests moved to the new rows: connected fixtures carry refs and open the row from its link. tier-effort and mobile-web each found a real gap and now guard the fix.
Tried in a sandbox HOME with the owner's real accounts:
- Claude Code: connected, a request answered, and disconnect restored the settings exactly.
- OpenCode: a request answered.
- Gemini CLI: connected.
- Codex: connected.
- Model list picks were saved.
go vet, builds (darwin, GOOS=windows, GOOS=linux -tags nogui) and go test -tags nogui ./... under a temp HOME pass. The agent GUI tests pass except cli-update's tight-row case, menu-scroll and old-webkit, which fail on main too.
* gui: make magpie web usable on phone screens
* gui: keep phone content readable and retain idle scroll protection
* gui: tolerate small desktop screenshot rendering differences
* tests: synchronize Zhipu team quota request records
* gui: keep every agent field visible on phones
* gui: exercise touch scrolling in the settings usage part
* gui: serve plugin parts in the phone test fixture