Skip to content

codex exec failing with & without update_plan #1952

@hejia-chipstack

Description

@hejia-chipstack

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions