Open
Conversation
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Make the
basesandbox Codex-ready by:codexnetwork policy tosandboxes/base/policy.yaml@openai/codex@0.111.0to@openai/codex@0.117.0sandboxes/base/README.mdMotivation
The current
basesandbox includes Codex as an installed coding agent, but in practice it does not work out of the box because:base/policy.yamldoes not currently include acodexpolicy block0.111.0) is outdatedapi.openai.comThis PR is intended to make the
basetemplate better match user expectations for a stock Codex-enabled sandbox.Changes
1) Update bundled Codex version
In
sandboxes/base/Dockerfile:@openai/codexfrom0.111.0to0.117.02) Add Codex policy coverage
In
sandboxes/base/policy.yaml:codexnetwork policyapi.openai.com:443auth.openai.com:443chatgpt.com:443/usr/bin/codex/usr/bin/node/usr/lib/node_modules/@openai/**3) Add authentication note to README
In
sandboxes/base/README.md:codex login --device-authfor remote/headless OpenShell environmentsWhy these hosts are needed
During testing, the following were required for Codex to function correctly in
base:auth.openai.comfor device-code authenticationchatgpt.comfor ChatGPT-sign-in-backed Codex trafficapi.openai.comfor Codex/OpenAI API trafficTesting
Tested by creating a fresh sandbox from the modified local
sandboxes/basedirectory and verifying:codex --versionreported0.117.0auth.openai.comwas reachable from inside the sandboxNotes
codex login --device-authappears to be the most practical authentication path for remote/headless OpenShell environments.~/.codex/auth.jsoncopy-in is a fallback for environments where interactive login is unreliable.Scope
This PR is intentionally limited to the
basesandbox template and related documentation. It does not attempt to change broader OpenShell core auth/provider behavior.