Repository navigation
Preserve saved sandbox permissions when resuming codex exec - #62194
Merged
copyberry[bot] merged 1 commit intoNov 18, 2026
Conversation
## Why `codex exec resume` sends the current process's sandbox defaults as overrides. A session started with `:read-only` can therefore resume with workspace write access when the configured default is `:workspace`. ## What changed - Restore the saved permission selection, working directory, and workspace roots by default. Honor explicit overrides and append directories requested with `--add-dir` to the resumed workspace roots. - Recover built-in read-only permissions from older history without widening current read access. Require an explicit permission selection when a saved named profile cannot be loaded or saved read-only access cannot be restored. - Report sandbox permissions and writable roots from the running thread. ## Testing Add regression coverage for a denied write on the first resumed shell call, legacy read-only history, explicit permission overrides, and workspace root preservation with and without `--add-dir`. GitOrigin-RevId: ed2cf3132f9ce34570661f801c9534a55696e3a5
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/ed2cf3132f9ce34570661f801c9534a55696e3a5
branch
from
November 18, 2026 05:14
36bb49f to
89feadf
Compare
Contributor
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/ed2cf3132f9ce34570661f801c9534a55696e3a5
branch
November 18, 2026 05:14
etsabary
temporarily deployed
to
issue-triage
November 18, 2026 05:32 — with
GitHub Actions
Inactive
etsabary
temporarily deployed
to
issue-triage
November 18, 2026 05:32 — with
GitHub Actions
Inactive
etsabary
temporarily deployed
to
issue-triage
November 18, 2026 05:32 — with
GitHub Actions
Inactive
rstuhlmuller
temporarily deployed
to
issue-triage
November 18, 2026 05:37 — with
GitHub Actions
Inactive
rstuhlmuller
temporarily deployed
to
issue-triage
November 18, 2026 05:37 — with
GitHub Actions
Inactive
rstuhlmuller
temporarily deployed
to
issue-triage
November 18, 2026 05:37 — with
GitHub Actions
Inactive
rstuhlmuller
temporarily deployed
to
issue-triage
November 18, 2026 05:38 — with
GitHub Actions
Inactive
kj0rDNA-devID-Spade
temporarily deployed
to
issue-triage
November 18, 2026 05:43 — with
GitHub Actions
Inactive
kj0rDNA-devID-Spade
temporarily deployed
to
issue-triage
November 18, 2026 05:43 — with
GitHub Actions
Inactive
kj0rDNA-devID-Spade
temporarily deployed
to
issue-triage
November 18, 2026 05:43 — with
GitHub Actions
Inactive
kj0rDNA-devID-Spade
temporarily deployed
to
issue-triage
November 18, 2026 05:44 — with
GitHub Actions
Inactive
Mohammaddokht
temporarily deployed
to
issue-triage
November 18, 2026 05:45 — with
GitHub Actions
Inactive
Mohammaddokht
temporarily deployed
to
issue-triage
November 18, 2026 05:45 — with
GitHub Actions
Inactive
Mohammaddokht
temporarily deployed
to
issue-triage
November 18, 2026 05:45 — with
GitHub Actions
Inactive
Mohammaddokht
temporarily deployed
to
issue-triage
November 18, 2026 05:46 — with
GitHub Actions
Inactive
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Preserve saved sandbox permissions when resuming
codex execWhy
codex exec resumesends the current process's sandbox defaults asoverrides. A session started with
:read-onlycan therefore resume withworkspace write access when the configured default is
:workspace.What changed
roots by default. Honor explicit overrides and append directories requested
with
--add-dirto the resumed workspace roots.current read access. Require an explicit permission selection when a saved
named profile cannot be loaded or saved read-only access cannot be restored.
Testing
Add regression coverage for a denied write on the first resumed shell call,
legacy read-only history, explicit permission overrides, and workspace root
preservation with and without
--add-dir.