Skip to content

config: remove dead profile sandbox fallback#25943

Merged
bolinfest merged 1 commit into
mainfrom
pr25943
Jun 2, 2026
Merged

config: remove dead profile sandbox fallback#25943
bolinfest merged 1 commit into
mainfrom
pr25943

Conversation

@bolinfest
Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest commented Jun 2, 2026

Why

profile_sandbox_mode was left over from the old selected legacy profile path. Production now always derives permissions without that value, and legacy profile contents are ignored, so keeping a parameter that is always None makes derive_permission_profile look like it still supports a fallback that no longer exists.

What Changed

  • Removed the profile_sandbox_mode argument from ConfigToml::derive_permission_profile.
  • Updated the production caller and legacy sandbox-policy test helper to match.
  • Dropped the stale unselected legacy-profile sandbox test that only protected the removed fallback shape.

Verification

  • just test -p codex-config
  • just test -p codex-core 'config::'

Stack created with Sapling. Best reviewed with ReviewStack.

@bolinfest bolinfest enabled auto-merge (squash) June 2, 2026 22:02
@bolinfest bolinfest merged commit c6d7675 into main Jun 2, 2026
45 of 47 checks passed
@bolinfest bolinfest deleted the pr25943 branch June 2, 2026 22:05
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants