fix(harness): install codex deps correctly (prerelease + Volcengine mirror)#73
Open
yaozheng-fang wants to merge 1 commit into
Open
fix(harness): install codex deps correctly (prerelease + Volcengine mirror)#73yaozheng-fang wants to merge 1 commit into
yaozheng-fang wants to merge 1 commit into
Conversation
…irror) The harness Dockerfile appended openai-codex to the main install line, which fails: openai-codex (and its bundled openai-codex-cli-bin) are pre-release only, so uv rejects them without --prerelease=allow. Split into a dedicated step with --prerelease=allow and the Volcengine pypi mirror (carries the pre-release wheels, fastest from the build infra). Verified: codex runtime builds and --runtime codex gains local file access. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Problem
The harness image (init template + generated Dockerfile) appended
openai-codexto the main install line:This fails the build:
openai-codexand its bundledopenai-codex-cli-binare pre-release only, so uv refuses them without--prerelease=allow(all versions of openai-codex cannot be used … pre-releases weren't enabled).Fix
Split the codex dependency into its own step with
--prerelease=allow, pulling from the Volcengine pypi mirror (it carries the pre-release wheels — confirmedopenai-codex-cli-bin==0.137.0a4— and is the fastest/most reliable source since the build runs on Volcengine infra):Verification
Deployed a harness from this template and confirmed
--runtime codexworks end-to-end:agentkit invoke harness <name> "..."(adk, default) → no local file access (explains how to runls ~).agentkit invoke harness <name> "..." --runtime codex→ actually lists the home directory (.bashrc,.config/,.local/, …) — codex backend has shell/file access.Follow-up to #72 (re-land), which merged with the codex install in its broken first form.
🤖 Generated with Claude Code