agent-console 1.3.3: reconnect on return, sidebar dots, permission-wait, chat icon (#760)
qingnian108's follow-up to #747 and #758, on top of 1.3.2.
- A permission request still open when its turn ends is cancelled by the
daemon (manager and ACP session both), and an ACP request the Agent
withdraws ($/cancel_request, through the handler's AbortSignal) closes
as cancelled. The page waits only on cards that still show buttons, so
a finished turn no longer leaves 等待授权 with nothing to click. The
等待授权 pill scrolls to the waiting card.
- 添加到对话 uses a speech-bubble icon.
- Sidebar dot: blinks while running, green after a completed turn, red
on failure, amber while waiting.
- Wrapper: every disconnect / invalid-link end state offers Reconnect;
the last safe back URL is kept in sessionStorage (safeBack re-checked
on read). Coming back to the page (visible / focus) probes the child
for 4 s instead of waiting out timers pushed back while hidden.
Review (head 0c8ee32b): every changed source line read. 1.3.2's Codex
model_catalog_json change is kept (codex/provider.ts untouched, rebuilt
dist still carries it). No new network in tests, page text set through
textContent/React, no new timers in the page or daemon; the wrapper's
sessionStorage back passes the same loopback check (tested with an evil
stored value).
Run (mote, macOS), standalone copy of packages/agent-console:
- npm ci; npm run check OK.
- vitest: 65 files, 489 passed / 17 skipped.
- npm run build, then verify:build: committed app/ and daemon/dist
identical to the rebuild.
On the PR merged onto main 5026f636: root `bun test
packages/agent-console` 6/6, `bun scripts/check.mjs` exit 0.
Not tried: scripts/e2e-v1.mjs (Playwright, scenario 28), the page with a
live Cursor/Claude/Codex, Windows/Linux.
This commit is contained in:
@@ -122,7 +122,10 @@ textarea.tinput { height: auto; min-height: 60px; padding: 6px 10px; resize: ver
|
||||
|
||||
/* Status dot */
|
||||
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--muted); }
|
||||
.dot.run { background: var(--accent-2); animation: breathe 1.6s infinite; }
|
||||
.dot.ok { background: var(--ok); }
|
||||
/* Running: strong dark<->light blink so it reads at a glance in both themes. */
|
||||
.dot.run { background: var(--fg); animation: dot-blink 1s steps(1, end) infinite; box-shadow: 0 0 0 1px color-mix(in oklab, var(--fg) 45%, transparent); }
|
||||
@keyframes dot-blink { 50% { background: var(--bg); } }
|
||||
.dot.err { background: var(--danger); }
|
||||
.dot.wait { background: var(--warn); animation: breathe 1.6s infinite; }
|
||||
@keyframes breathe { 50% { opacity: .35; } }
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
.t-item.on::before { content: ""; position: absolute; left: -1px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--accent-2); }
|
||||
.t-item.archived { opacity: 0.55; }
|
||||
.t-item.archived .t-title { font-style: italic; }
|
||||
.t-item .dot { width: 5px; height: 5px; }
|
||||
.t-item .dot { width: 6px; height: 6px; }
|
||||
.t-pin { width: 12px; flex: none; display: inline-flex; color: var(--muted); }
|
||||
.t-pin svg { width: 10px; height: 10px; }
|
||||
.t-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
@@ -124,6 +124,7 @@ body.col-drag iframe, body.col-drag .xterm { pointer-events: none; }
|
||||
.tb-pill.run { background: var(--run-bg); color: var(--run-fg); }
|
||||
.tb-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-2) 20%, transparent); animation: breathe 1.6s infinite; }
|
||||
.tb-pill.wait { color: var(--warn); }
|
||||
button.tb-pill { border: 0; font-family: inherit; cursor: pointer; }
|
||||
.tb-pill.err { color: var(--danger); }
|
||||
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
|
||||
.tb-model { font-size: var(--fs-s); color: var(--muted); margin-right: 4px; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
Reference in New Issue
Block a user