Skip to content

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

Closed

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.

Activity

  1. nos1609 commented on Nov 4, 2025

    @nos1609

    Looks like I'm getting into that, consumed all my limits trying to sort it out.
    Reproducible even in cli over the vscode terminal - it simply keeps "thinking" for half an hour, once this happens.

  2. etraut-openai commented on Jan 17, 2026

    @etraut-openai
    Contributor

    Closing out old bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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