Skip to content

Session disappear. Codex trips over bad JSON history. #24425

@nialse

Description

@nialse

What version of Codex CLI is running?

codex-cli 0.133.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.5

What platform is your computer?

Linux 6.8.0-117-generic x86_64 x86_64 over ssh from Codex App on MacOS

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

No response

Codex doctor report

What issue are you seeing?

Codex App thread disappeared. Session was not listed in codex on the host accessed over SSH either.

Cause: JSON for history was broken, did not validate. Works after removing offending and broken parts of the JSON.

RCA: Codex had issues with encoding JSON files, may write broken JSON it can read. Trips over on its own files.

What steps can reproduce the bug?

Uploaded thread: 019e5d6e-90b4-7032-827e-4aa0df8cdd9a

What is the expected behavior?

Codex and Codex App sessions should not suddenly disappear.

Additional information

Take a deep breath.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archiving

    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