Repository navigation
refactor(control-ui): group tool activity in the chat transcript - #124123
vyctorbrzezowski wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 6:46 AM ET / 10:46 UTC. ClawSweeper reviewWhat this changesThe branch replaces completed-turn work rollups with semantic Control UI activity disclosures and records interrupted live tool calls. Merge readiness⛔ Blocked before merge - 4 items remain Keep this maintainer-owned draft open. Two previously reported P2 correctness blockers remain on the unchanged head, and current main has substantially rewritten the same transcript surface, so the branch needs a deliberate rebase rather than merge consideration. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI converts persisted messages and live tool events into transcript groups, then renders assistant replies and expandable tool activity. Run lifecycle state supplies the terminal outcome shown by those rows. flowchart LR
A[Chat and tool events] --> B[Message normalization]
B --> C[Transcript grouping]
C --> D[Activity disclosure]
D --> E[Chat transcript]
F[Run lifecycle] --> D
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -23, Tests +111, Other -1. Total +87 across 22 files. View PR surface stats
Review metrics
Mantis proof suggestionAfter the rebase, a web chat transcript capture would directly demonstrate that visible replies stay outside activity disclosures and singleton tool rows remain direct. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase the intended semantic activity behavior onto current main’s run-frame architecture, preserve producer-supplied command classification, and make disclosure eligibility depend on visible content. Do we have a high-confidence way to reproduce the issue? Yes, from source: a producer-marked dynamic command with additional arguments is downgraded at ui/src/pages/chat/tool-stream.ts:1101, and hidden reasoning plus one tool creates an activity disclosure through ui/src/pages/chat/chat-thread-grouping.ts:630. Is this the best way to solve the issue? No. The intended cleanup is coherent, but it must retain producer facts and use the already-computed reasoning visibility state; current main’s newer run-frame composition is the right integration point. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 73a73e5ffca7. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
f1f6322 to
08f3b01
Compare
Replace the obsolete completed-turn work rollup with the current lightweight semantic activity projection. Keep replies and artifacts outside disclosures, record unresolved terminal tools as interrupted, reject orphan progress before sequence fencing, and retain the latest bounded command output.
08f3b01 to
fc0036e
Compare
What Problem This Solves
#125240 replaced the Control UI's old tool-card styling with lightweight transcript activity, but the transcript still had two competing grouping paths:
collapseCompletedTurnWorkproduced a separateWorked for …rollup whilecoalesceActivityRunsproduced semantic activity summaries. Mixed assistant text plus tool calls could also normalize into the tool role and disappear inside a collapsed disclosure.Live lifecycle gaps compounded the readability problem: orphan progress could create a row with no outcome, terminal runs could leave unresolved calls in an unknown state, and bounded command output retained the oldest text instead of the most recent result.
Why This Change Was Made
This rewrite starts from current
mainand keeps #125240's lightweight presentation. The transcript projection is now the only disclosure owner:work-groupprojection, renderer, CSS, i18n, and tests are removed.The live tool producer now validates phases and targets before sequence fencing, drops orphan progress while retaining orphan results, records unresolved calls as interrupted whenever their exact owning run terminates, and keeps the newest 120,000 characters only for command-like output. Read/fetch output retains the existing prefix behavior.
No Gateway protocol, config, or storage changes are included.
User Impact
Ran 2 commands, read a file, edited a file…instead ofWorked for 5s.Production delta:
+271 / -294(-23net). Test delta:+426 / -315(+111net). Tooling ratchet:-1stale baseline entry.Evidence
Pre-fix focused regressions failed for mixed reply/tool grouping, orphan progress, command-tail truncation, and interrupted tool state. The same cases pass after the owner-boundary repair.
node scripts/run-vitest.mjs ui/src/lib/chat/message-normalizer.test.ts ui/src/pages/chat/chat-thread.test.ts ui/src/pages/chat/tool-stream.node.test.ts ui/src/pages/chat/run-lifecycle.test.ts ui/src/pages/chat/chat-view.test.ts ui/src/pages/chat/components/chat-message.test.ts ui/src/pages/chat/components/chat-tool-cards.node.test.ts— 774 passed.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-tool-turn-outcome.e2e.test.ts --reporter=verbose— 6 passed in Chromium against the mocked Gateway.node scripts/check-changed.mjs -- <changed paths>— formatting, ratchets, deadcode, i18n, typecheck, oxlint, stylelint, and script checks passed..agents/skills/autoreview/scripts/autoreview --mode uncommitted …— clean; no accepted/actionable findings.Recorder verdict:
{ "workRollups": 0, "activityGroups": 2, "expandedSummary": "Ran 2 commands, read a file, edited a file, used web_search", "finalReplyInsideActivity": false }