Skip to content

Codex VS Code extension crashes on startup after a single conversation exceeds the session size limit. #5902

@rafatairnz

Description

@rafatairnz

What version of Codex is running?

0.4.31

What subscription do you have?

Business

Which model were you using?

No response

What platform is your computer?

Darwin 23.6.0 arm64 arm

What issue are you seeing?

After pasting a very large CI/CD pipeline log into a Codex chat, the VS Code extension saved a session larger than the context limit. The plugin cashed and it will keep crashing after VSCode reloads.

Image

What steps can reproduce the bug?

  1. Open Codex chat, paste a very large CI/CD pipeline log.
  2. Wait until the response history grows beyond context limit.
  3. Close and reopen VS Code (or reload the window).

What is the expected behavior?

The extension should cap or skip oversized session files so VS Code starts normally.

Additional information

Workaround: manually trim or remove the large session file under ~/.codex/sessions, then quit and relaunch VS Code. A simple “Reload Window” is not enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingextensionIssues related to the VS Code extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions