Skip to content

Use turn environment permissions for context and discovery - #37040

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6bbbd9b88aafa5e6583971ce4e427fc7557f2d93
Aug 5, 2026
Merged

Use turn environment permissions for context and discovery#37040
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6bbbd9b88aafa5e6583971ce4e427fc7557f2d93

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 5, 2026

Copy link
Copy Markdown

Use turn environment permissions for context and discovery

What changed

  • Build filesystem and permission context from the primary turn environment's permission profile, working directory, and workspace roots, falling back to the thread context when no primary environment is available.
  • Build capability-discovery sandbox contexts from each environment's permission profile and treat discovery as restricted when any selected environment has restricted filesystem access.

Testing

  • Add regression tests covering environment-specific capability discovery and permission context updates.
## What changed

- Build filesystem and permission context from the primary turn environment's permission profile, working directory, and workspace roots, falling back to the thread context when no primary environment is available.
- Build capability-discovery sandbox contexts from each environment's permission profile and treat discovery as restricted when any selected environment has restricted filesystem access.

## Testing

- Add regression tests covering environment-specific capability discovery and permission context updates.

GitOrigin-RevId: 6bbbd9b88aafa5e6583971ce4e427fc7557f2d93
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6bbbd9b88aafa5e6583971ce4e427fc7557f2d93 branch from 8588b0c to ed2f985 Compare August 5, 2026 06:44
@copyberry
copyberry Bot merged commit ed2f985 into main Aug 5, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6bbbd9b88aafa5e6583971ce4e427fc7557f2d93 branch August 5, 2026 06:45
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet