Skip to content

Fix agent context files workspace root#323

Merged
shiny-code-bot merged 3 commits into
mainfrom
fix/agent-context-files-workspace-root
Jun 2, 2026
Merged

Fix agent context files workspace root#323
shiny-code-bot merged 3 commits into
mainfrom
fix/agent-context-files-workspace-root

Conversation

@shiny-code-bot
Copy link
Copy Markdown
Collaborator

Summary

  • Preserve the active workspace root on created agents so context_files resolve from the session/worktree cwd instead of the harness process cwd.
  • Route run_agent and auto-review agent creation through workspace-aware creation paths.
  • Add a regression test for explicit workspace roots when the process cwd differs.

Validation

  • cargo test -p code-core create_agent_preserves_explicit_workspace_root_for_context_files
  • cargo test -p code-core context_files
  • ./build-fast.sh

This addresses the auto-review finding that context_files could misresolve or reject valid files in multi-session/worktree flows.

@shiny-code-bot shiny-code-bot merged commit 9dab4a2 into main Jun 2, 2026
1 check passed
@shiny-code-bot shiny-code-bot deleted the fix/agent-context-files-workspace-root branch June 2, 2026 03:07
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