fix(ui): stop repeating tool names in expanded activity#100606
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 1:36 AM ET / 05:36 UTC. Summary PR surface: Source -32, Tests +34. Total +2 across 8 files. Reproducibility: yes. Current main source renders the duplicate expanded tool-card title/icon, and the inspected before screenshot shows the repeated heading in the visible UI. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the focused shared-renderer cleanup after ordinary maintainer review and exact-head checks, keeping the disclosure row as the single visible tool identity surface. Do we have a high-confidence way to reproduce the issue? Yes. Current main source renders the duplicate expanded tool-card title/icon, and the inspected before screenshot shows the repeated heading in the visible UI. Is this the best way to solve the issue? Yes. Moving identity responsibility to the shared disclosure row is the narrowest maintainable fix; hiding it at one call site or only with CSS would leave sibling paths or accessibility-visible duplication behind. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 89f911f322c9. Label changesLabel justifications:
Evidence reviewedPR surface: Source -32, Tests +34. Total +2 across 8 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
ea23180 to
b2fb7e8
Compare
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where expanding a Control UI tool call repeated the tool icon and name inside the detail body even though the disclosure row already identified the tool.
Why This Change Was Made
Makes the collapsed disclosure the canonical place for tool identity across inline and standalone tool rows. Expanded content now starts with the useful command/detail and keeps the side-panel action, input, and result blocks without a duplicate heading.
User Impact
Expanded tool activity is shorter and easier to scan. Tool names remain visible in the disclosure row, including detail-first standalone calls, while the expanded body focuses on inputs and results.
Evidence
pnpm test ui/src/pages/chat/components/chat-tool-cards.test.ts ui/src/pages/chat/components/chat-message.test.ts— 100 tests passed on Testboxtbx_01kwtthdytwjcatn7gpfwxhpvw.tbx_01kwtvjw00dqmdeej61sg9tgwb(Actions run).pnpm check:changed— typecheck, lint, and repository guards passed on Testboxtbx_01kwtthdytwjcatn7gpfwxhpvw.