Session logs data loss

Resolved 💬 5 comments Opened Apr 6, 2026 by Yohe-Am Closed Apr 22, 2026

What version of Codex CLI is running?

0.166.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.3-codex

What platform is your computer?

Linux 6.19.10 x86_64 unknown

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

Alacritty

What issue are you seeing?

Sometimes, when I close the CLI and try to resume a previous session, I find that it hasn't saved some sections of the log. In the latest instance, 2 days of messages are gone. It's like the session logs didn't flush at exit.

What steps can reproduce the bug?

Doesn't happen always but this is not a SIGKILL issue. Natural exit where the CLI shows me the resume prompt and token usage stats also suffers this issue.

What is the expected behavior?

Session data should be flushed to the session logs every message to avoid data loss.

Additional information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗