fix(windows): normalize backslash paths to posix in tool titles/patterns#22006
fix(windows): normalize backslash paths to posix in tool titles/patterns#22006tobias-weiss-ai-xr wants to merge 1 commit intoanomalyco:devfrom
Conversation
On Windows, path.relative() returns backslash-separated paths which look wrong in tool call titles and may cause issues in patterns arrays. Add toPosix() helper to convert \\ to / in edit, write, read, glob, ls, multiedit, lsp, and plan tools wherever paths appear in titles or permission patterns.
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate FoundPR #21852 - "fix/windows path normalization"
Other Related PRs (may be addressing similar but not identical issues):
PR #21852 appears to be the most likely duplicate as it's specifically about Windows path normalization, similar to the current PR #22006 which normalizes backslash paths to POSIX format in tool titles and patterns. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
Summary
Test plan