Repository navigation
improve: show readable agent and chat tool activity - #204399
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR adds readable, localized chat-tool activity labels, receipt-aware message outcomes, and consistent goal icons. Example: A completed sessions_list call has limit: 20.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it provides a useful, maintainer-approved presentation improvement, and all three prior findings are addressed with no new actionable defect found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI converts recorded tool calls, results, and session names into transcript activity rows; these changes affect presentation without changing execution or delivery. flowchart LR
A[Recorded tool calls] --> C[Display normalization]
B[Tool results and receipts] --> C
C --> D[Operation presentation]
E[English catalogs and icons] --> D
F[Session roster names] --> D
D --> G[Chat activity rows]
Technical reviewBest possible solution: Retain the existing renderer and authoritative receipt contracts while supplying the remaining browser evidence for the corrected delivery labels. Do we have a high-confidence way to reproduce the issue? Current-main source retains the generic tool-name/detail fallback, and the inspected before screenshots demonstrate the misleading labels; no target code was executed during this review. Is this the best way to solve the issue? The change uses existing display normalization, localization, session naming, and result contracts, and removes the duplicate goal SVG without adding execution or persistence machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 61ecfe12d37a. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +564, Tests +145, Other +3. Total +712 across 13 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 24, 2026, 3:14 PM ET / 20:14 UTC (Revision 2). |
Baseline-Refresh: 6f703ffa01473b89b04de2512bc33c3a68746bfe
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* improve: show readable agent and chat tool activity * perf: load operation labels with expanded chat tool rows * fix: resolve chat tool labels without a type assertion * fix(ui): version the English tool operation catalog * fix(ui): describe conversation activity from delivery receipts * refine(ui): shorten conversation receipt labels * fix(ui): distinguish a sent message from a failed reply * fix(ui): keep pending session delivery unconfirmed * fix(ui): keep the final catalog row visible while it resizes * perf(ui): defer per-action tool metadata until details are needed
What Problem This Solves
Chat tool rows show internal names such as Tool Describe and can display a list limit as though it were the number of results.
User Impact
People can tell when an agent checks a goal, lists chats, or reads tool instructions. Goal rows use the same glyph as the goal indicator.
Why This Change Was Made
Use the existing chat renderer and localized operation labels. Keep session names and delivery receipts authoritative. The MCP description uses the book from the board; custom MCP service branding is separate.
This consolidates the Agents changes from #203975 and #203987 in the first layer of the seven-area tool-call presentation series.
Risk and coverage
Control UI presentation only. Tool execution, permissions, and retained arguments and results are unchanged.
Evidence
Same recorded tool calls in the built Control UI, rendered against synthetic Gateway history. No external tools or services were called. The Control UI build, type check, targeted lint, English catalog verification, and 51 focused tests passed. Local autoreview (P0–P2) found no actionable issues after review and repair of the staged patch.
The operation catalog loads with expanded tool rows. See the paired measurements under Chat startup payload for the size regression and its fix; the budget was not changed.
Agents comparison board
Clean comparison
Annotated comparison
Landing verification
Queued and suppressed messages no longer appear as sent. The row distinguishes a sent message whose reply timed out from a send whose delivery remains unconfirmed. The English operations catalog now changes the version of its cached assets when the labels change.
On
517b1f173603, 156 focused Node/jsdom tests passed, including the mounted tool rows and the Vite source-hash contract. UI typechecking, English catalog verification, and focused lint and formatting passed. Independent local review of5e5ecba4..517b1f17found no actionable P0–P2 issues. The existing images above cover goal, chat list, and tool instructions; they do not show the receipt cases. No new browser or Gateway session was used for this repair.Skills catalog: last row after scrolling
On the previous head, hosted WebKit placed the last skill below the viewport. Commit
7b24d4a6keeps the catalog at the end when rows change height after the user scrolls there; elsewhere it keeps the existing scroll behavior. The browser regression requires the last skill to stay visible without a second scroll.In a controlled jsdom reproduction on base
ffa7d745, the last skill was outside a 500px viewport in both event orders (534px and 678px). With the fix it was inside (422px) in both; focus and mid-list scrolling were preserved. On7b24d4a6, 125 focused tests, UI typechecking, and touched lint and formatting passed. Independent review of the delta found no actionable P0–P2 issues. This simulation does not establish the cause of the previous native failure or prove WebKit behavior; the replacement-head CI run supplies the browser result.Chat startup payload
The previous public head,
7b24d4a6, passed the hosted WebKit check. It failed the paired startup-size check: 1,336,184 → 1,336,842 gzip bytes for chat (+658; 21 requests).Commit
4cd62247keeps tool names and icons available at startup but leaves per-action details for the code that actually renders them. All 77 complete tool specs serialize identically to the previous head, including the 12 per-action tables. The generated native-client catalog is unchanged. No labels, receipts, visuals, or budgets changed in this fix.In paired production builds against PR merge base
5e5ecba4(Node 26.13.1, Vite 8.3.5), initial chat JavaScript fell from 1,335,587 to 1,334,873 gzip bytes (−714; 21 requests both times). New-conversation JavaScript fell from 819,747 to 818,732 bytes (−1,015; 17 requests both times). The local comparison passed. The existing total-CSS warnings were not hidden: total gzip fell by 21 bytes and raw bytes were unchanged. This is a different base and toolchain from the hosted comparison above.The agent and channel tool-display tests, 67 UI tests, core/UI/scripts type checks, native catalog check, targeted lint/format, and diff check passed. Independent review of this incremental change reported no actionable P0–P2 findings. The built source maps put the per-action tables with the deferred detail renderer, not the chat boot code. No local Gateway, app or browser was launched for this fix.
The hosted performance check on
4cd62247passed on Node 24.22.1. Against its paired base, normalized gzip JavaScript fell from 1,336,047 to 1,335,475 bytes for chat (−572; 21 requests) and from 819,817 to 818,721 bytes for a new conversation (−1,096; 17 requests). Neither path added a request or needed a higher limit.