You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(client-runtime): an approved step no longer reads "and used 1 tool" - #45074
When a command or edit needs approval, the collapsed activity line counts the approval as a tool of its own. A single approved command reads "Ran 1 command and used 1 tool" and gets the generic tool icon instead of the terminal one. The approval request is a row in the same tool group as the step it gates, so summarizeToolGroup and toolGroupSummaryKind counted it as an extra "other" action.
The summary and its icon now leave approval requests out when the group has anything else in it. A group that holds only an approval still reads "Used 1 tool". The expanded list still shows the approval row. The change is in client-runtime, so web and mobile both get it.
Before
After
Reproduced with the Replay (dev) provider's approval scenario by approving the request. The new test in presentation.test.ts fails on main ("Ran 1 command and used 1 tool") and passes with the fix. The web timeline and mobile activity tests still pass.
Model: Claude Opus 5.5
Harness: Claude Code in T3 Code
The approval request sits in the same tool group as the command or edit
it gates, and the summary counted it as a tool of its own. Leave it out
of the summary text and icon unless the group holds nothing else.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewing files that changed from the base of the PR and between 8b8dcd2 and 5112672.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
Tool-group summaries and kind classification now exclude approval requests when another step is present. Approval-only groups retain approval requests in their summaries.
A shared filter excludes approval requests from summary counts and group-kind classification when another step exists. Tests cover mixed command and approval groups, and approval-only groups.
Approved steps will no longer read "and used 1 tool", and approval-only groups still read "Used 1 tool". No merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the primary change: approved steps no longer show the "and used 1 tool" wording. It matches the raw summary, which excludes approval_request entries from tool-group summaries and kinds…
Description check
The description follows the template's main sections. It explains the problem (approval counted as an extra tool), the change (exclude approval requests when the group has other entries), and the veri…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the primary change: approved steps no longer show the "and used 1 tool" wording. It matches the raw summary, which excludes approval_request entries from tool-group summaries and kinds when another step exists. The title is a conventional commit with a plain-language description of the user-visible result.
Full details: Description check
Explanation
The description follows the template's main sections. It explains the problem (approval counted as an extra tool), the change (exclude approval requests when the group has other entries), and the verification (a new test that fails on main and passes with the fix, plus web and mobile tests). It includes before/after screenshots and the model and harness used. The Scope section does not link an issue or explain why no issue is needed, which is a gap. The author also gave no maintainer request link.
Resolution
Add to the Scope section either a link to the issue that shows the bug or a short reason why this small fix needs no issue. Optionally add a link to any maintainer request.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Scenario: An approved command counts only the command
Steps on both commits: seed a fresh synthetic project and supervised Write approval replay thread; open the thread; click Approve; wait for completion; expand Worked for; capture the summary; expand the command group. Environment: real web app, 1280×800, light theme, fresh isolated database per side.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a command or edit needs approval, the collapsed activity line counts the approval as a tool of its own. A single approved command reads "Ran 1 command and used 1 tool" and gets the generic tool icon instead of the terminal one. The approval request is a row in the same tool group as the step it gates, so
summarizeToolGroupandtoolGroupSummaryKindcounted it as an extra "other" action.The summary and its icon now leave approval requests out when the group has anything else in it. A group that holds only an approval still reads "Used 1 tool". The expanded list still shows the approval row. The change is in
client-runtime, so web and mobile both get it.Reproduced with the
Replay (dev)provider'sapprovalscenario by approving the request. The new test inpresentation.test.tsfails onmain("Ran 1 command and used 1 tool") and passes with the fix. The web timeline and mobile activity tests still pass.Model: Claude Opus 5.5
Harness: Claude Code in T3 Code
🤖 Generated with Claude Code