Skip to content

Session logs data loss #16897

@Yohe-Am

Description

@Yohe-Am

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions