Too easy to lose a session and all its content

Open 💬 2 comments Opened Jun 7, 2026 by emilfihlman
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

codex-cli 0.137.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.5 xhigh

What platform is your computer?

Debian Linux

What terminal emulator and version are you using (if applicable)?

normal, occasionally screen

Codex doctor report

What issue are you seeing?

Closing a session with ctlr+d or any other shouldn't remove it from history and from resumamble sessions.

As it stands right now, it's too easy to lose a session and all the progress and planning made in it.

I consider this a bug as it easily leads to loss of data.

What steps can reproduce the bug?

Open codex, close session (with ctrl+d or some other way), only some sessions are saved.

What is the expected behavior?

Sessions should save automatically, their content should save to local machine directly (or there should be an easy way to do it), especially if there's planning results, questions to the user and answers to them, user input, etc.
There should be a flag "record most/all" and incus should automatically save a log of the discussion.

Additional information

Please immediately and quickly add a fix to make auditability, logging, etc, easily possible.

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 2 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #25397
  • #25463
  • #25574

Powered by Codex Action

etraut-openai contributor · 2 months ago

I'm not able to repro the problem. Was this a one-time occurrence, or have you seen it multiple times? Are you able to repro it on demand? If so, what are the specific repro steps?