Support non-interactive execution with historical session records
Resolved 💬 3 comments Opened Oct 15, 2025 by lingtaolf Closed Oct 16, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
Codex now supports non-interactive execution, and you only need to use the exec parameter. It also allows restoring historical conversations from sessions, such as codex resume <session>. However, sometimes we may need to make a call that carries history forward in a non-interactive scenario. In such cases, you might need to use a command like codex resume <session> exec <prompt>.
Additional information
_No response_
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
<img width="1140" height="445" alt="Image" src="https://github.com/user-attachments/assets/52465dbe-4d77-42dd-aeb1-8c1f430582d0" />
https://github.com/lingtaolf/codex/pull/1
it already exists and i've used it in a couple of scripts. You should switch places the
execandresume <id>https://github.com/openai/codex/pull/3537 - this is the pull that enabled current behavior
I think you should consider closing this, or maybe editing this for added documentation, but
--helpalready has this<img width="813" height="176" alt="Image" src="https://github.com/user-attachments/assets/41d231f3-0f7b-4241-aa4b-45fabb86dead" />