Repository navigation
fix(projects): resolve directory names regardless of case - #343
Merged
Merged
Conversation
nixuuu
force-pushed
the
fix/directory-picker-case
branch
from
November 7, 2026 15:58
4f7cd26 to
face265
Compare
Resolve every directory segment on the worker, keep exact-name precedence, and reject ambiguous matches with the candidate names. Track requested and resolved paths separately in the picker and persist canonical workspace paths. Fixes: #155
nixuuu
force-pushed
the
fix/directory-picker-case
branch
from
November 7, 2026 16:01
face265 to
f129397
Compare
nixuuu
marked this pull request as ready for review
November 7, 2026 16:04
This was referenced Nov 13, 2026
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.
Typing
~/git/on a worker with only~/GITnow opens~/GIT/and updates the path field before Add directory submits it. The worker resolves every path segment, prioritizes exact names, and accepts a case-insensitive match only when it is unique. With bothGitandGIT, the picker names the candidates and asks for exact spelling. Missing paths stop loading with an actionable error and leave Add directory disabled.Directory listings retain the existing worker validation and owner-scoped gateway routing. Add project and workspace create/update store the resolved path. Linked-computer coverage verifies that resolution and project creation happen on the destination worker. The picker associates responses with their requested path, so canonical paths and symlink targets can render without persistent skeletons.
Fixes: #155
Verification
bun install,bun run gen:check,bun run typecheck,bun run lint,bun run format:check, andbun run --filter @canopy/web build.bun run check:tmp: 1748 passed, 161 skipped, 0 failed across 310 files; temporary directory clean.~/git/→~/GIT/, nested correction, Add directory saves the real path, exactGit/GITchoices, ambiguous and missing paths disable adding, and relative paths show guidance. Light/dark at 1280×800 and 390×844; short, typical, and long names render cleanly. Ambiguity messages with 128-character names wrap without horizontal overflow on a phone. Preview tabs and owned stack/container cleaned up.Copy audit — docs/copy.md §8
Several directories match “git”: “GIT”, “Git”. Type an exact name.All changed text uses sentence case, plain English, short sentences, and the existing directory/worker glossary. Existing action labels keep their verbs. Errors end with recovery instructions; there are no new terms, jokes, repeated visible facts, or icon/colour-only meanings. Error status is announced accessibly. Desktop/phone and long-name checks passed.