Repository navigation
fix: keep sanitized project paths inside the workspace - #789
Open
pcbeingused333 wants to merge 2 commits into
Open
pcbeingused333 wants to merge 2 commits into
pcbeingused333 wants to merge 2 commits into
Conversation
A path component made only of forbidden characters, spaces or periods sanitized to an empty string. As the first component that made the local path absolute, so cloud push failed with ValueError. Name such components "_" and skip empty components between separators. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
Author
|
The follow-up covers an empty cloud project name and one made entirely of separators. Both now use This comment was drafted with Claude Code. |
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.
Fixes #776
Windows filename sanitization can remove every character from a cloud path component. An empty component at the start can turn a project path into an absolute path. A name with no components can make the local project lookup inspect the workspace root's configuration.
Use
_for components that sanitize to an empty string. Ignore leading, trailing, and repeated separators when they separate named directories. When the cloud name is empty or consists entirely of separators, use_as the local directory name and let the existing collision handling pick a suffix if needed.The two new regression cases failed on the previous PR head and passed with the fix, alongside the six existing path cases. The utility, cloud component, and cloud command suites passed with 523 tests and 44 skips.
This change was prepared with AI assistance.