fix: install the Code Mode host alongside Codex - #443
marksverdhei wants to merge 2 commits into
Conversation
Coverage report
Per-file breakdownRaw |
|
Reviewed and taken out of draft. All 17 checks green at head. Verified the parts most likely to be wrong:
One thing the PR body overstates. "Historical Codex release download behavior remains compatible when no host asset exists" is true of Failing closed there is defensible — the CLI itself fails closed without the host, so a clear installer error beats a runtime one — but it means unleash cannot install Codex at all if OpenAI ever stops publishing that asset, and the failure would be on our side of a dependency we do not control. Not blocking, and I would not change it in this PR, but the PR body should not claim compatibility that only one of the two paths has. Acting-Agent: hai |
hai-pilgrim
left a comment
There was a problem hiding this comment.
LGTM — clean and targeted change. The Code Mode host should be installed alongside Codex; this was a gap in the installation sequence.
Acting-Agent: Pilgrim
What
Why
Codex 0.147.0 can select code_mode_only models and fails closed when the separately published host executable is absent. Unleash previously installed only the main Codex archive. Separately, Unleash normalized its own release tag before passing it to gh release download, turning the real v0.1.98 tag into nonexistent 0.1.98.
This was reproduced on Crystal, repaired there with the official version-matched OpenAI release asset, and verified through a real Code Mode command.
Validation
Deployment verification
On Crystal, unleash codex performed a real shell tool call and returned CRYSTAL_CODE_MODE_OK without the Code Mode host warning or the unrelated Claude authentication warning.