Skip to content

fix(setup): read the user's settings.local.json when checking for the isolated setup - #1763

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix/isolated-configured-user-local-settings
Oct 22, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:fix/isolated-configured-user-local-settings

Conversation

@potiuk

@potiuk potiuk commented Oct 22, 2026

Copy link
Copy Markdown
Member

Summary

  • The SessionStart check 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's settings.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.
  • Bumps the dev version to 0.9.0.dev202610222305 so adopters on the marketplace pick up the fix.

Type of change

  • Python package (tools/*/ with pyproject.toml)
  • Other: the setup_preflight package shipped in the magpie-setup plugin, and the dev version bump

Test plan

  • uv run --project tools/setup-preflight pytest tools/setup-preflight/tests/test_isolated.py: all 33 tests pass
  • test_a_sandbox_in_the_user_settings_is_configured is parametrized over settings.json and settings.local.json; the settings.local.json case fails without the fix
  • prek run --files <changed files> passes
  • Seen on a real machine: the sandbox is enabled only in ~/.claude/settings.local.json, the footer shows a sandbox, and the banner fired on every session

RFC-AI-0004 compliance

  • Sandbox: no new host access; the check only reads one more settings file, outside the sandbox (the hook runs there)

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

… 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 potiuk added family:setup setup-* skills capability:fix Implement code change to resolve an issue labels Oct 22, 2026
@github-actions github-actions Bot added family:pr-management pr-management-* skills family:security security-* skills family:tools tools/* family:ci .github workflows, prek, validators family:issue issue-* skills capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) family:release-management release-* skills family:repo-health repo-health skills family:contributor-growth contributor-growth skills family:mentoring mentoring skills family:pairing pairing skills family:utilities utilities skills substrate:setup Tool substrate: adopter-side setup state resolved at runtime (lock parsing, floors, fingerprints) labels Oct 22, 2026
@potiuk
potiuk enabled auto-merge (squash) October 22, 2026 23:56
@potiuk
potiuk merged commit 9e27d02 into apache:main Oct 22, 2026
17 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:fix Implement code change to resolve an issue capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) family:ci .github workflows, prek, validators family:contributor-growth contributor-growth skills family:issue issue-* skills family:mentoring mentoring skills family:pairing pairing skills family:pr-management pr-management-* skills family:release-management release-* skills family:repo-health repo-health skills family:security security-* skills family:setup setup-* skills family:tools tools/* family:utilities utilities skills substrate:setup Tool substrate: adopter-side setup state resolved at runtime (lock parsing, floors, fingerprints)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant