fix(claude): add missing sandbox allowWrite paths for obsidian vault + superpowers-chrome - #19
Merged
Merged
Conversation
…+ superpowers-chrome sb note create was EPERM'ing on ~/Vaults/pickled-knowledge (hit 4x this week) because obsidian.jsonc only allowed writes to ~/.cache/qmd/, never the vault itself. Its permissions.allow also still pointed at the old technicalpickles path from a previous machine. superpowers-chrome's browser-profiles mkdir was EPERM'ing on ~/.cache/superpowers because skills.jsonc only had a Read rule for ~/Library/Caches/superpowers, a macOS-style path the plugin never actually uses (it's XDG ~/.cache always, per getXdgCacheHome()). Found by querying a week of session transcripts via cq for sandbox EPERM failures.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Summary
sb note createwas EPERM'ing on~/Vaults/pickled-knowledge(4x this week per a cq scan of session transcripts).obsidian.jsonc'ssandbox.filesystem.allowWriteonly had~/.cache/qmd/, never the vault itself. Itspermissions.allowalso still pointed at the oldtechnicalpicklespath from a previous machine, fixed to~/Vaults/pickled-knowledge.superpowers-chrome's browser-profiles mkdir was EPERM'ing on~/.cache/superpowers.skills.jsonconly had aReadrule for~/Library/Caches/superpowers, a macOS-style path the plugin never actually uses (confirmed viagetXdgCacheHome()in the plugin source, it's always XDG~/.cache).Test plan
npx prettier --checkon both changed filesnpm run typecheckconfirmed the one failing check is a pre-existing, unrelated tsconfig deprecation warning (reproduced viagit stash)claudeconfig.sh --skip-ssh-checkand confirmed the regenerated~/.claude/settings.jsoncontains~/.cache/superpowersand~/Vaults/pickled-knowledgeinsandbox.filesystem.allowWrite, the staletechnicalpicklespermission entries are gone, andenabledPlugins/extraKnownMarketplacessurvived the regen🤖 Generated with Claude Code