Repository navigation
Import panel: folders only, since the sandbox can't read beside a file - #29
Merged
Merged
Conversation
Picking project.mt granted access to that one file, so patterns/ and instruments/ beside it could not be read and the import failed. The panel now takes folders only. Picking a folder inside a project, whose parent the sandbox can't read, now gives the "choose the project folder" message rather than a permission error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
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.
What & why
File > Import Tracker Project… does nothing useful when you pick the project's
project.mtinstead of the project folder.The cause is the sandbox. The app may read only what was picked, so
patterns/andinstruments/beside the file are out of reach, and the import fails with a permission error. Found while testing #28 on a real card. The App Store build has the same problem.The fix:
patterns/, the reader looks one level up, and the sandbox can't read that folder.ProjectBundleReadernow treats an unreadable folder as "not a project", so you get the message asking for the project folder itself instead of a permission error.How to test
cd PatternautCore && swift test: 157 tests.patterns/. It fails onmainwith exactly the permission error from the card, and passes with this change.Checklist
cd PatternautCore && swift test)App/project.ymlor sources changed (no new files)🤖 Generated with Claude Code