Subagents should use project-local relative paths for repo operations #249
Labels
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/auto_review#249
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Subagents, especially those running on Spark, sometimes invoke repository-local operations such as
git diffwith an absolute path rooted at the user's home directory (for example~/projects/auto_review/...) instead of using project-local relative paths such as.or paths relative to the repository root.Even when the target path is inside the current project, opencode can treat the absolute path as outside the project permission boundary. That triggers a permission prompt in the main agent while the subagent output appears to hang.
Expected behavior
Agents should use project-local relative paths for repository operations whenever the target is inside the current project, for example:
git diffgit diff -- <relative/path>.for whole-repository operationsThey should avoid home-directory absolute paths for project-local work.
Impact
Notes
This may also expose an opencode permission-boundary bug for absolute paths that resolve inside the workspace, but this ticket is scoped to making our agents consistently use relative project-local paths.