Verified Codex
Continue the last scripted run with codex exec resume --last
What it does
codex exec resume --last continues the most recent exec session in this directory, optionally with a follow-up prompt; --all searches every directory.
How
codex exec resume --last "Now add unit tests"
How much to trust this
| Applies to | ≥ 0.163.0 |
|---|---|
| Verified | Oct 17, 2026 · v0.163.0 · tested locally 本机 codex-cli 0.163.0 的 --help 中存在相关参数 |
| Depends on | codex exec resume--last--all |
| Source | https://developers.openai.com/codex/cli/reference (official_docs) |