Skip to content

fix(acp): pass session working_dir to on_call_tool#10689

Open
Abhijay007 wants to merge 1 commit into
aaif-goose:mainfrom
Abhijay007:fix/acp-call-tool-working-dir
Open

fix(acp): pass session working_dir to on_call_tool#10689
Abhijay007 wants to merge 1 commit into
aaif-goose:mainfrom
Abhijay007:fix/acp-call-tool-working-dir

Conversation

@Abhijay007

Copy link
Copy Markdown
Collaborator

Fixes : #10680

Summary

ACP goose/call_tool was constructing ToolCallContext with working_dir: None, so tools that require a session cwd (e.g. summarize) always failed with "working_dir is required". Load the session and pass its working_dir, matching the agent dispatch path.

Testing

manual

ACP goose/call_tool was constructing ToolCallContext with working_dir:
None, so tools that require a session cwd (e.g. summarize) always failed
with "working_dir is required". Load the session and pass its working_dir,
matching the agent dispatch path.

Baltsat commented Jul 25, 2026

Copy link
Copy Markdown

I independently reproduced #10680 on the same base while this PR was being opened. This source fix addresses the exact dispatch gap, and I added a deterministic ACP regression that creates a real session cwd, calls the bundled summarize extension with a relative path, and verifies the provider response.

Proof on this PR's exact head e2a61db1855dd5628f1de76812ac632e0e69ab98:

  • upstream base: focused test fails with isError: true
  • this head: cargo test -p goose --test acp_custom_requests_test test_custom_call_tool_uses_session_working_dir -- --exact1 passed; 0 failed
  • cargo fmt --check and git diff --check pass

The test-only signed commit is here: Baltsat/goose-b-nnett@1f93c3d

Feel free to cherry-pick it into this branch; it only changes crates/goose/tests/acp_custom_requests_test.rs. I used AI assistance to prepare the test and independently reproduced the red/green behavior.

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.

Summarize platform extension fails with "working_dir is required" — tool completely non-functional

2 participants