codex exec failing with & without update_plan
Resolved 💬 4 comments Opened Aug 7, 2025 by hejia-chipstack Closed Oct 27, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli-exec 0.16.0
Which model were you using?
gpt-5
What platform is your computer?
Darwin 24.5.0 arm64 arm
What steps can reproduce the bug?
codex exec "run update_plan tool with some smoke test"
What is the expected behavior?
update_plan tool should be run
What do you see instead?
[2025-08-07T18:49:35] codex
I’ll set up a tiny smoke-test plan, then mark it complete.
[2025-08-07T18:49:35] exec bash -lc "update_plan << 'EOF'
[
{\"step\": \"Create smoke-test plan\", \"status\": \"in_progress\"},
{\"step\": \"Verify update mechanism\", \"status\": \"pending\"},
{\"step\": \"Finalize by completing plan\", \"status\": \"pending\"}
]
EOF" in /Users/chipstack/sandbox/codex
[2025-08-07T18:49:36] bash -lc "update_plan << 'EOF'
[
{\"step\": \"Create smoke-test plan\", \"status\": \"in_progress\"},
{\"step\": \"Verify update mechanism\", \"status\": \"pending\"},
{\"step\": \"Finalize by completing plan\", \"status\": \"pending\"}
]
EOF" exited 127 in 648ms:
/opt/homebrew/Library/Homebrew/brew.sh: line 60: cannot create temp file for here document: Operation not permitted
/opt/homebrew/Library/Homebrew/cmd/shellenv.sh: line 18: /bin/ps: Operation not permitted
bash: line 1: update_plan: command not found
Additional information
I set include_plan_tool = true in config.toml but it doesn't work; Cursor tell me it's because ConfigToml doesn't has that field. It's hardcoded to true in tui, but cli doesn't have it.
Also, trying to use the CLI without plan_tool won't work either, because prompt.md is hardcoded to have that tool and model will try to use it.
4 Comments
tui smoke test looks good:
https://github.com/openai/codex/pull/1793
@easong-openai @bolinfest I just realized there is already a related PR; Should this be re-opened?
I think at least CLI should work with update_plan either fully on or off. Currently it's kinda half-on and degrading performance
We've also observed that
include_plan_tooldoes nothing inexecmode (nor does theinclude_apply_patch_tool).Following the code, it looks like when these two values are defaulted to
Nonehere: https://github.com/openai/codex/blob/main/codex-rs/exec/src/lib.rs#L149. There is then no way for them to be set to anything else becauseload_with_cli_overrides()(https://github.com/openai/codex/blob/main/codex-rs/core/src/config.rs#L390) parses them intoConfigTomlwhich does not have these values defined (https://github.com/openai/codex/blob/main/codex-rs/core/src/config.rs#L390).To the extent that more recent models can make good use of the plan and apply patch tools this makes
execmode considerably underpowered compared to what it could be for more complex tasks.@easong-openai in closing that PR you said "I think we're just going to kill it given upcoming releases." -- does this imply that another fix for plan mode working in
execmode is in the works?include_plan_toolhas been removed, so closing this issue.