[Fix] Multi-root workspaces treat secondary roots as outside the workspace#225
Draft
roomote[bot] wants to merge 5 commits into
Draft
[Fix] Multi-root workspaces treat secondary roots as outside the workspace#225roomote[bot] wants to merge 5 commits into
roomote[bot] wants to merge 5 commits into
Conversation
Contributor
Author
|
2 issues outstanding. See task
|
Contributor
Author
|
Pushed d4df00b6e on What changed:
Validation:
Visual proof: not applicable for this change because it only updates backend/tooling test coverage. CI is rerunning now on |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
3f96d01 to
5b6b41e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #204
What problem this solves
Fixes an issue where users working in a VS Code multi-root workspace could have tools treat files in secondary roots as outside the workspace. Read, edit, patch, and create flows could resolve relative paths against the first root, and root-specific
.rooignorerules were not applied consistently.Why this change was made
This change makes path resolution choose the workspace root that already contains the target file or its parent directory, then carries that resolved path through ignore and protection checks, file-context tracking, and file-tool operations. It also fixes the Windows absolute-path command case so secondary-root
.rooignorerules still apply when commands referenceC:\...paths directly, and adds focused unit coverage for the new multi-root resolver and absolute diff-path behavior.User impact
File tools now behave correctly across multi-root workspaces, including creating new files under the right root and honoring secondary-root
.rooignorerules across Unix and Windows command styles.Related PRs