Include model name in `exec --json` JSONL output
Resolved 💬 2 comments Opened Mar 15, 2026 by nathanschram Closed May 16, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
When running codex exec --json, the JSONL events (thread.started, turn.started, item.completed, turn.completed) don't include the model name. The interactive TUI shows the model, but the programmatic output doesn't.
It would be helpful if thread.started or turn.completed included a model field:
{"type":"thread.started","thread_id":"...","model":"codex-mini-latest"}
Why: Programmatic consumers of exec --json (CI pipelines, Telegram bridges like Untether, dashboards) have no way to know which model was used. Claude Code and Gemini CLI both include model in their JSONL init events.
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This feature hasn't received enough upvotes, so closing.