Repository navigation
improve(ui): keep live tool purposes visible in activity summaries - #160881
Conversation
Hold current-run operation titles in the existing expandable row, coalesce rapid updates, and restore counts on settlement. Preserve nested outcomes and disclosure boundaries. Co-authored-by: steipete <[email protected]>
|
🦞👀 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. |
Co-authored-by: steipete <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 10:58 PM ET / September 29, 2026, 02:58 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch adds timed, run-scoped purpose text to the Control UI’s expandable chat activity row, with styling, documentation, and behavior tests. Merge readiness✅ Ready for maintainer review Keep this PR open. Current main still loses the purpose text between tool calls, while the branch has direct visual proof of the requested behavior and no blocking defect found in review. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI turns Gateway tool activity into expandable rows in the chat transcript. This change selects a headline for the active run and changes what the row shows while tools run and after the run settles. flowchart LR
A[Gateway tool activity] --> B[Chat transcript]
B --> C[Active run and newest group]
C --> D[Timed purpose headline]
D --> E[Expandable tool details]
C --> F[Settled count summary]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +201, Tests +544, Docs +10. Total +755 across 10 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the existing disclosure as the live activity surface, with readable current-run context and intact expansion, outcome, and approval indicators. Do we have a high-confidence way to reproduce the issue? Not applicable as a new UI behavior. Current-main source and the inspected baseline screenshot show the count-only gap the request aims to improve. Is this the best way to solve the issue? Yes. The branch reuses the existing disclosure and prepared activity titles, with local presentation timing and run scoping instead of another progress surface. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 79fbe5890ed5. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Preserve visibility measurements and payload assertions while waiting for recorded agent responses before freezing the startup sample. Delayed real-Gateway identity proof reproduces the original assertion and passes with this correction. Co-authored-by: steipete <[email protected]>
Preserve the exact retained-row and eviction budgets while allowing purpose headlines and continuation presentation in the live tool flood. Co-authored-by: steipete <[email protected]>
|
Merged via squash.
|
…penclaw#160881) * improve(ui): keep live tool purposes visible in activity summaries Hold current-run operation titles in the existing expandable row, coalesce rapid updates, and restore counts on settlement. Preserve nested outcomes and disclosure boundaries. Co-authored-by: steipete <[email protected]> * test(ui): align activity headline fixtures with lint rules Co-authored-by: steipete <[email protected]> * test(ui): await startup avatar responses before sampling Preserve visibility measurements and payload assertions while waiting for recorded agent responses before freezing the startup sample. Delayed real-Gateway identity proof reproduces the original assertion and passes with this correction. Co-authored-by: steipete <[email protected]> * test(ui): select live activity disclosures by their owner Preserve the exact retained-row and eviction budgets while allowing purpose headlines and continuation presentation in the live tool flood. Co-authored-by: steipete <[email protected]> --------- Co-authored-by: steipete <[email protected]>
Closes #160870
What Problem This Solves
The expandable web tool-activity row loses the agent’s useful purpose text between calls and falls back to counts, forcing users to open the log to follow the work.
User Impact
Users can glance at one expandable line to see the current operation. Within each disclosure, titles get a three-second reading window; rapid updates coalesce to the latest title. The last purpose remains between calls, and counts return immediately when the run ends. Failed/blocked outcomes and existing approval indicators stay visible.
Why This Change Was Made
Reuse prepared, public operation titles in the existing disclosure rather than adding another progress strip or model request. Scope the headline to the newest activity group in the current run, preserve full inline narration and disclosure state, and disable the small title animation for reduced motion.
Requested and design-approved by @steipete.
Work sessions
Evidence
Final exact-head CI passed for
51891775bd3b10e4f844faa537d1ea7e582f2609, including both repaired E2E suites and the enforced CI/security gate.274 focused activity, transcript, narration, nesting, and disclosure tests pass.
Production Control UI build passes, including its bundle-size guards.
Changed-check type, i18n, ratchet, coercion and dead-export gates passed. Two test-only lint issues were repaired; scoped oxlint/stylelint and all 25 headline/transcript tests then passed on the updated head.
Independent review completed; verified timing/outcome findings were repaired with regressions. The reading window deliberately resets at a new narration-bounded disclosure.
New regressions cover three-second holds, latest-pending replacement, combined completion/start updates, nested failed/blocked outcomes, expansion, final settlement, and session/run/connection changes. Two existing activity regressions moved out of the oversized message suite without removing coverage.
Focused single-worker wall time: headline suite 5.19s; transcript integration suite 6.21s. Test bodies use fake timers.
Real Control UI in Chromium with deterministic Gateway events: same prompt and live tool gap, baseline sources versus candidate; expansion continues updating, and final settlement restores counts. This is mock-Gateway boundary proof, not a live-provider end-to-end test.
The first CI run failed an existing avatar startup assertion and canceled remaining jobs through fail-fast. A controlled slow identity response reproduced the same assertion: the fixture froze an unanswered RPC, not an inline avatar payload. The correction waits for recorded startup responses before sampling; visibility timings, payload assertions, and timeouts stay unchanged.
The corrected fixture passed with the controlled slow response (22.59s test time) and the normal Gateway (16.15s test time, 43.06s wall). This used Blacksmith Testbox
tbx_01m3netp5jf6frkskk95pyqvzw(environment run) andnode scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-loading-performance.real-gateway.e2e.test.ts. No diagnostic delay is committed. Independent review and scoped lint passed for this correction.The next CI run passed both real-Gateway shards, including the avatar correction, but found a live-stream budget test still selecting the old
50 editslabel. Its selector now uses the disclosure owner in both standalone and continuation layouts; exact row-count and eviction budgets are unchanged. All six runtime-budget cases pass (20.19s test time, 35.62s wall; the flood case is 8.30s) on Blacksmith Testboxtbx_01m3ngz844xhe6aecqbwg3sxd4(environment run), usingOPENCLAW_UI_E2E_SKIP_REAL_GATEWAY=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-stream-runtime-budgets.e2e.test.ts. Independent review and scoped lint are clean.Before
After