Repository navigation
fix(ui): keep tool-only turn details visible - #106791
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f23ddd0b08
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
9b1be72 to
abdee5c
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 13, 2026, 5:21 PM ET / 21:21 UTC. Summary PR surface: Source +21, Tests +97. Total +118 across 6 files. Reproducibility: yes. The pre-fix focused assertions reproduced completed and failed reply-less turns collapsing incorrectly, and the real Chromium scenarios exercise the same visible Control UI path after the fix. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the owner-boundary fix after exact-head checks pass: keep reply-less tool turns visible at the turn-collapse layer and derive compact context through the existing redaction and truncation utilities. Do we have a high-confidence way to reproduce the issue? Yes. The pre-fix focused assertions reproduced completed and failed reply-less turns collapsing incorrectly, and the real Chromium scenarios exercise the same visible Control UI path after the fix. Is this the best way to solve the issue? Yes. The turn-collapse decision is corrected where the unwanted rollup is created, while preview text reuses existing redaction and truncation utilities; changing Gateway transcripts or globally disabling work rollups would be broader and less maintainable. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e2d605537142. Label changesLabel justifications:
Evidence reviewedPR surface: Source +21, Tests +97. Total +118 across 6 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)
|
abdee5c to
7b0fd51
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b0fd513ea
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (finalReplyIndex === -1) { | ||
| result.push(...turn); | ||
| continue; |
There was a problem hiding this comment.
Don’t return hidden tool-only turns as empty groups
When tool calls are hidden (showToolCalls=false) and a completed turn has only an assistant tool-call message plus its tool result, buildChatItems drops the toolResult but leaves the assistant tool-call group (ui/src/pages/chat/chat-thread.ts:1347), and renderGroupedMessage later suppresses tool cards and returns nothing (ui/src/pages/chat/components/chat-message.ts:2138). This new reply-less branch returns that group unchanged instead of the previous rollup, so renderMessageGroup still emits the assistant wrapper/footer with no bubble content, leaving a blank assistant row after tool-only turns; please keep/filter these groups for hidden-tool mode rather than exposing them unchanged.
Useful? React with 👍 / 👎.
|
Land-ready proof for
Known proof gaps: none for the touched Control UI behavior. |
|
Merged via squash.
|
* fix(ui): keep tool-only turn details visible * refactor(ui): keep tool card component size neutral * style(ui): format tool turn e2e test * chore: leave release notes to release automation
What Problem This Solves
Fixes an issue where users completing a tool-only turn in Control UI would see only a generic
Worked forrollup when no assistant text followed. The tool call was the turn's only useful result, but it was hidden by default; compact generic rows also gave little clue what message, prompt, task, or query the tool handled.Why This Change Was Made
Reply-less completed turns now keep their tool rows visible, while turns that end with assistant text retain the existing work rollup. Generic compact tool rows use a redacted, bounded first meaningful line from common intent arguments; expanding the row still reveals the full tool details.
User Impact
Tool-only outcomes remain immediately visible. A message call now reads like
Message Hello Molty, first claw-to-claw hello.instead of disappearing behindWorked for 3s, and the same one-line context works for prompt-, task-, query-, text-, and description-style tools.Evidence
tbx_01kxejcag2qpcw3r5nq7ybbr2a:corepack pnpm tsgo:uipassed.tbx_01kxejcag2qpcw3r5nq7ybbr2a: focused chat/tool-card suite passed 134/134 tests.tbx_01kxejcag2qpcw3r5nq7ybbr2a: real Chromium tool-turn suite passed 4/4 scenarios, including collapsed one-line preview and expanded full arguments.corepack pnpm check:changed: conflict markers, TypeScript LOC ratchet, changelog attribution, export guards, duplicate coverage, dependency pins, formatting, package patches, and temp-report gates passed. The subsequent core-test typecheck is currently blocked on latestmainby two pre-existingstatusfixture errors insrc/commands/onboard-non-interactive/local/auth-choice.plugin-providers.test.ts; this branch does not change that file.AI-assisted: Codex.