Repository navigation
fix(agent-chat): show ACP paths and diffs for tool calls - #15908
Conversation
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Warning Review limit reachedNext included review available in 4 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
All contributors have signed the CLA ✍️ ✅ |
teamleaderleo
left a comment
There was a problem hiding this comment.
Review: Checked the ACP adapter diff, focused regression, TypeScript compile, and full agent-chat suite. Found no correctness issues.
Fixed: Added location-path details and diff and terminal content formatting with the existing truncation limits.
Left: Did not add a new block kind, UI component, colour, inline diff card, or change files-changed handling because those are outside this fix.
|
Merge receipt for |
|
Post-merge review of this change, since it landed on green before I got to it. Review: the two exported helpers do what the PR says. Left: one cosmetic defect in Also worth knowing for the next change in this area: I am folding the separator fix into a follow-up PR that also fixes the |
ecba57a fix(sidebar): cut with an ellipsis character so a reference cannot re-parse (manaflow-ai#15893) 6d2b5d1 feat(terminal): browser-style navigation layout and a terminalAlternateScreen shortcut key (manaflow-ai#14863) 0d3fdb1 test: print the simulator pipe output when the EOF assertion fails (manaflow-ai#15857) 46fe41a Fix cloud dogfood pause link-down journey (manaflow-ai#15918) 7d246ed fix: open existing Cloud workspace rows optimistically (manaflow-ai#15747) 1b06f84 fix(agent-chat): show ACP paths and diffs for tool calls (manaflow-ai#15908) b413b7a fix(agent-chat): preserve earlier ACP plans during updates (manaflow-ai#15907) 8b75678 Persist Cloud display membership across clients (manaflow-ai#15748) 547340a fix(cloud): carry the machine author from /api/vm to the machine row's snapshot (manaflow-ai#15309) e30de3d test: probe cloud agent status in Cloud VM journey (manaflow-ai#15875) 296537c docs(agent-chat): correct provider claims and pin ACP argv (manaflow-ai#15901) e1dc959 Count the renamed Agent spawn tool as a subagent in the pi bridge (manaflow-ai#15865) 14fae18 dogfood: record the hover steps as trees, not frames (manaflow-ai#15845) 4da3bb3 fix(agent-chat): scope ACP plans to their turn and refresh activity (manaflow-ai#15898) 64ec56d feat(terminal): right-click a link to choose where it opens (manaflow-ai#15325) efb762c Make unsupported remote browser warning dismissible (manaflow-ai#15726) 666c77f Cloud Machines sidebar: add persistent create buttons (manaflow-ai#15680) # Conflicts: # .github/workflows/cloud-vm-dogfood.yml
* test(agent-chat): cover ACP stop cancellation races Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(agent-chat): let Stop cancel queued or starting ACP turns The content separator follows up on #15908 review feedback. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
ACP tool-call transcript blocks now show the files an ACP tool touched and useful output for edits and terminals. The existing tool block and rendering path remain unchanged.
Summary
tool-startuses ACP location paths when present and keeps the raw-input JSON fallback when they are absent.tool-endrenders diff paths with added and removed line counts, includes the new text, and names terminal IDs. The existing 400-character truncation remains in place.Verification
The focused regression was committed before the fix and run with the same command.
Test commit
6e87bf05564(bun test test/acp-tool-detail.test.ts):Fix commit
d3108259e98(bun test test/acp-tool-detail.test.ts):Full package verification with
cd agent-chat && bun install && bun run checkpassed: 22 script checks and 43 tests across 13 Bun test files, with 0 failures.The pull request CI job that executes the agent-chat suite is workflow-guard-tests / preflight, in the guards run.
Scope notes
files-changedis not affected and already works for ACP sessions. The block is produced from git inserver.tsbyfilesChangedEvents, andadapters/acp.tsalready threadsgenerationinto itsdoneevent, so the end-of-turn edited-files list is not the broken path here.A clickable inline diff card for a single tool call is a separate feature and is deliberately not included in this pull request.
Changelog
Fixed ACP tool-call transcript details for file paths, diffs, and terminals.
🤖 Generated with Claude Code