Skip to content

refactor(acp): extract tool call handling from server - #10574

Merged
lifeizhou-ap merged 6 commits into
mainfrom
lifei/acp-tool-call-refactor
Jul 21, 2026
Merged

refactor(acp): extract tool call handling from server#10574
lifeizhou-ap merged 6 commits into
mainfrom
lifei/acp-tool-call-refactor

Conversation

@lifeizhou-ap

@lifeizhou-ap lifeizhou-ap commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR is pure refactoring, no major behaviour change

Changes

  • Extract ACP tool-call conversion, enrichment, and chain tracking into focused modules.
  • Add ToolCallNotifier to centralize initial tool-call and update notifications across live sessions, replay, and filesystem tools.
  • Share tool-response conversion between live and replay paths.
  • Include error content when ACP-aware tools fail, so clients receive the underlying failure message.

Testing

CI

@lifeizhou-ap lifeizhou-ap changed the title created separate tool_call_notifier to send file system notification refactor(acp): extract tool call handling from server Jul 21, 2026

@michaelneale michaelneale left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume ok - a lot more comments (I guess that is a claude model at work) which I think add to it, but may want to check it isn't totally repeating the code, but that seems pretty standard these days!

@lifeizhou-ap

lifeizhou-ap commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator Author

I assume ok - a lot more comments (I guess that is a claude model at work) which I think add to it, but may want to check it isn't totally repeating the code, but that seems pretty standard these days!

Yes, i moved the original comments in this refactoring. This is the first step of the refactoring, and would like to merge first to avoid a large PR. More work have been planned to enhance and structure this original vide coded code!

@lifeizhou-ap
lifeizhou-ap added this pull request to the merge queue Jul 21, 2026
Merged via the queue into main with commit 076da90 Jul 21, 2026
25 of 26 checks passed
@lifeizhou-ap
lifeizhou-ap deleted the lifei/acp-tool-call-refactor branch July 21, 2026 01:13
michaelneale added a commit that referenced this pull request Jul 22, 2026
* origin/main:
  fix(ui): clear stale pending ACP connection after terminal recovery failure (#10552)
  Make provider smoke tests faster and more reliable (#10605)
  fix(acp): confirm pending steer message on queuedSteer notification (#10532)
  chore(deps): bump body-parser from 1.20.5 to 1.20.6 in /documentation (#10601)
  chore(deps): bump webpack-dev-server from 5.2.5 to 5.2.6 in /documentation (#10593)
  feat(compaction): structured summary output with template rendering (#10471)
  feat(skills): allow disabling built-in skills (#10600)
  fix: apply hermit env directly in node shims so a fish login shell doesn't break MCP startup (#10028)
  chore(release): bump version to 1.44.0 (minor) (#10597)
  fix(extensions): preserve command arguments through forms (#10527)
  fix(permissions): enforce manual approval for code mode (#10528)
  fix(apps): confine app file operations (#10481)
  fix(local-inference): preserve featured model size on delete and backfill missing sizes (#10422)
  refactor(acp): extract tool call handling from server (#10574)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants