0xZaTe (#feedback): after hiding agents, they looked pinned, not hidden
(看着反而像是一个置顶功能了 … 现在反而更显眼了). renderAgents put the
fold's groups in the order [Hidden, Not set up], so once the fold was
opened (its button then reads 「收起」, which is what they saw under Codex)
the hidden rows, each with a Show pill, sat right under the agent in use,
above the ones nothing is set on.
What changed (internal/gui/assets/app.js, app.css, i18n.js):
- In the fold, Not set up comes first. The hidden ones come last, behind
a line of their own, 「已隐藏(2)」 / "Hidden (2)", with a disclosure
chevron (right shut, down open), as a Finder sidebar section does. It
is shut by default (showHiddenAgents), its rows inert while shut, and
it unrolls on the same curve as the fold, the panel's edge moving with
it (fit) and the view following (unrollInView).
- The fold's button counts only the ones nothing is set on ("Show 3
more"), no longer "Show 5 more (2 hidden)".
- With nothing but hidden ones folded, the fold is theirs: no second
disclosure inside it, its button still reads "{n} hidden agents", and
opening it leaves the hidden rows open, so Show on one of them doesn't
shut the rest behind a new line once another goes under Not set up.
- New strings in zh, zh-TW, ja, de; the unused "Show {n} more ({h}
hidden)" is dropped.
Siblings checked: the window and the tray panel draw the Agents list
with the same code, so both get it. The Usage page's hidden clients are
already a shut "{n} hidden" line under the list. The panel's Arrange
(usage tab) is an edit mode that lists every subscription with Show/Hide
in place, as iOS's edit lists do, so it is left as is. The model picker
is a checklist.
Tests:
- new agents-hidden-last.test.cjs: the reporter's list (Codex connected,
two hidden, three not set up). Order of the fold, the hidden rows out
of sight and inert until their line is opened, then shown under it
with Show, the button's count, no sideways scroll. Window at 420px and
the tray panel at 380px, Chromium and WebKit, en/zh/zh-TW/ja/de, plus
the hidden-only case. Run against the old app.js/app.css/i18n.js it
fails on the order ([Hidden, agy, commandcode, Not set up, ...]).
- hidden-agent-cleared and rollup-short updated for the new order and
count.
Run (macOS, playwright 1.62.0, both engines): agents-hidden-last,
hidden-agent-cleared, rollup-short, show-unset-agent, fold-show-grip,
agent-grip, grip-inset, panel-fold, panel-arrange, panel-effort,
panel-profiles, click-scroll, usage-agents-hide, removed-hide,
i18n-keys, gui-zh-tw, gui-ja, gui-de, lightweight and every agent-*
test: all green. go test -tags nogui ./internal/gui/ ok; gofmt -l clean;
go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet
./... clean. Screenshots of the window and the panel in zh checked by
eye. Not run: the whole GUI suite (no shared class or API changed).