codex
codex copied to clipboard
Support dump and resume conversations
Codex CLI currently does not support dumping a conversation to a folder and resuming it. It would be better if we can support persisting conversations, and resume them later. It is really useful to enhance the user experience.
no session restoration is totally a joke for a CLI. Can't believe the Codex team didn't implement this feature in the first place.
My machine just crashed when in the middle of a complicated codex session. It would be very useful if I could just resume where I was. Claude code already has a /resume command for this.
Coming from Claude Code, this is a must have feature.
Upvote for this.
0.30.0 added the start of support for --resume and --continue:
- https://github.com/openai/codex/releases/tag/rust-v0.30.0
- https://github.com/openai/codex/pull/3135
- https://github.com/openai/codex/pull/3185
- https://github.com/openai/codex/pull/3218
See also:
- https://github.com/openai/codex/issues/1991
- https://github.com/openai/codex/issues/3233
In claude code, --resume and --continue work per-folder. It appears this is global. Is there a reason for that? Is there a way to adjust that to instead be per-folder?
I had a session started on codex 0.25 that stopped working today, probably because the model it was using has been retired while I was working. I tried upgrading to the latest codex and resuming that session, but it doesn't show any of my previous sessions from 0.25, I get "No sessions found" when I use --resume.
Later edit: looking at the session files, it seems the JSON changed significantly between 0.25 and 0.35, that's probably why it doesn't recognize the old sessions. Hopefully such format changes won't happen frequently.
This is now supported with codex resume.