codex icon indicating copy to clipboard operation
codex copied to clipboard

Support dump and resume conversations

Open ethe opened this issue 3 months ago • 5 comments
trafficstars

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.

ethe avatar Aug 11 '25 09:08 ethe

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.

vdp641 avatar Aug 20 '25 01:08 vdp641

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.

hakonhagland avatar Aug 28 '25 19:08 hakonhagland

Coming from Claude Code, this is a must have feature.

onerok avatar Aug 29 '25 13:08 onerok

Upvote for this.

mtrin avatar Sep 01 '25 14:09 mtrin

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

0xdevalias avatar Sep 07 '25 23:09 0xdevalias

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?

jcherniak avatar Sep 08 '25 02:09 jcherniak

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.

vnicolici avatar Sep 12 '25 13:09 vnicolici

This is now supported with codex resume.

tibo-openai avatar Oct 19 '25 02:10 tibo-openai