Repository navigation
fix(setup): read the user's settings.local.json when checking for the isolated setup - #1763
Merged
potiuk merged 1 commit intoOct 22, 2026
Conversation
… isolated setup configured() read only ~/.claude/settings.json, so a sandbox enabled only in ~/.claude/settings.local.json made the SessionStart hook warn that the isolated setup is not configured, while sandbox-status-line.sh, which reads that file, showed the session as sandboxed. Read both user files. Also bumps the dev version to 0.9.0.dev202610222305. Generated-by: Claude Opus 5
potiuk
enabled auto-merge (squash)
October 22, 2026 23:56
This was referenced Nov 3, 2026
potiuk
added a commit
that referenced
this pull request
Nov 5, 2026
…onfigured() (#2002) Claude Code loads a settings.local.json only from a project's .claude/, so sandbox.enabled in the home directory's copy sandboxes nothing, yet configured() counted it and reported an unsandboxed machine as configured. Read only ~/.claude/settings.json at user scope, reversing #1763. isolated-setup-verify check 6 now reports the setting found only there, and the complete-upgrade read, docs, specs and evals follow. Generated-by: Claude Opus 5
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
setup_preflight.isolated.configured()read only the user's~/.claude/settings.json, not~/.claude/settings.local.json. With the sandbox enabled only in the user'ssettings.local.json, the session-start banner reported "the isolated setup is not configured on this machine" even though every session was sandboxed and the footer (sandbox-status-line.sh, which reads that file) said so.configured()now reads both user files, matching the status line.0.9.0.dev202610222305so adopters on the marketplace pick up the fix.Type of change
tools/*/withpyproject.toml)setup_preflightpackage shipped in themagpie-setupplugin, and the dev version bumpTest plan
uv run --project tools/setup-preflight pytest tools/setup-preflight/tests/test_isolated.py: all 33 tests passtest_a_sandbox_in_the_user_settings_is_configuredis parametrized oversettings.jsonandsettings.local.json; thesettings.local.jsoncase fails without the fixprek run --files <changed files>passes~/.claude/settings.local.json, the footer shows a sandbox, and the banner fired on every sessionRFC-AI-0004 compliance
Notes for reviewers (optional)
The check still doesn't read the main checkout's settings from a linked worktree, which the status line does. I left that out to keep this PR to the one reported case.
🤖 Generated with Claude Code