Skip to content

fix(agentic): allow local tool paths outside workspace root#778

Merged
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:fix/local-tool-paths-outside-workspace
May 19, 2026
Merged

fix(agentic): allow local tool paths outside workspace root#778
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:fix/local-tool-paths-outside-workspace

Conversation

@bobleer
Copy link
Copy Markdown
Collaborator

@bobleer bobleer commented May 19, 2026

Summary

  • Remove the hard workspace containment check for local desktop tool path resolution (resolve_workspace_tool_path).
  • Remote SSH workspaces still reject paths outside the opened project tree.
  • Fork/subagent path_policy roots (write_roots, etc.) are unchanged and still enforced via enforce_path_operation.

Motivation

Local agents already have host-level access via Bash; blocking /tmp/... and similar paths on Read/Write/Edit only forced the same work through Shell with worse UX and misleading tool errors.

Test plan

  • cargo test -p bitfun-core path_resolution
  • Local: Write to /tmp/pr_body.md succeeds
  • Remote SSH: path outside workspace still returns "outside current workspace"

Local desktop sessions no longer hard-reject file/shell paths that resolve
outside the opened workspace (e.g. /tmp for PR bodies). Remote SSH workspaces
still enforce containment. Optional path_policy roots are unchanged.
@bobleer bobleer merged commit 675308a into GCWing:main May 19, 2026
1 check passed
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.

1 participant