Repository navigation
Ship the Codex code-mode host in the Runtime image - #865
Merged
Merged
Conversation
Native code_mode runs model-written scripts in codex-code-mode-host, which Codex 0.153.4 looks for beside its executable. The Runtime image carried only the codex executable, so programmatic tool calling on Codex failed in every Docker, microsandbox and E2B Environment. The native installer already ships the whole package.
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
Programmatic tool calling on Codex failed in every Docker, microsandbox and E2B Environment: the model reported that
codex-code-mode-hostwas missing. Nativecode_moderuns model-written scripts in that program, and Codex 0.153.4 looks for it beside its executable. The Runtime image copied onlybin/codexfrom the pinned package. The native installer ships the whole package and was not affected.scripts/build-codex-runtime.shchecks and copiesbin/codex-code-mode-hostwithbin/codex./usr/local/bin/codex-code-mode-host. The E2B template copies/usr/local/binwhole, so it follows.Verification
codexin/usr/local/bin. With the host layered onto it, both programs sit there andcodex --versionreports 0.153.4.codex execagainst MiniMax-M2.7 withfeatures.code_modeset, as the adapter does, and with the promptecho code-mode-ok-$((6*7)):Code Mode is unavailable … host executable was not found. Withcode_mode_only, every call fails closed and the model reports the missing host, as in the bug report.codex: no warning, and withcode_mode_onlythe script runs through code mode and returnscode-mode-ok-42.generate-harness-catalog.py --checkpasses.Release CI builds the images, so PR CI does not cover them.
Need help on this PR? Tag
@codesmith-botwith what you need.