Skip to content

Preserve executor workspace permissions for apply_patch - #36133

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2a9a8c2e1b1945e300283c400d0f1e573225a553
Jul 30, 2026
Merged

Preserve executor workspace permissions for apply_patch#36133
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2a9a8c2e1b1945e300283c400d0f1e573225a553

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 30, 2026

Copy link
Copy Markdown

Preserve executor workspace permissions for apply_patch

What changed

Build the apply_patch filesystem sandbox context from the executor's canonical permission profile instead of the execution attempt's materialized profile. Continue merging any additional permissions requested by the patch while keeping workspace roots scoped separately to the attempt.

Testing

  • Update the sandbox-context test to verify that executor workspace-write permissions are preserved when attempt workspace roots and additional file permissions are present.

## What changed

Build the `apply_patch` filesystem sandbox context from the executor's canonical permission profile instead of the execution attempt's materialized profile. Continue merging any additional permissions requested by the patch while keeping workspace roots scoped separately to the attempt.

## Testing

- Update the sandbox-context test to verify that executor `workspace-write` permissions are preserved when attempt workspace roots and additional file permissions are present.

GitOrigin-RevId: 2a9a8c2e1b1945e300283c400d0f1e573225a553
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2a9a8c2e1b1945e300283c400d0f1e573225a553 branch from 228b0d6 to bdda5da Compare July 30, 2026 11:12
@copyberry
copyberry Bot merged commit bdda5da into main Jul 30, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2a9a8c2e1b1945e300283c400d0f1e573225a553 branch July 30, 2026 11:13
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 30, 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.

4 participants