Skip to content

Codex session abruptly closed with context window ran out of room error #23375

Open

Description

@mvvbapiraju

What version of the Codex App are you using (From “About Codex” dialog)?

26.513.31313 (2867)

What subscription do you have?

Pro

What platform is your computer?

Darwin 25.3.0 arm64 arm

What issue are you seeing?

Codex ran out of room in the model's context window. Start a new thread or clear earlier history before retrying

What steps can reproduce the bug?

My Codex session was abruptly stopped with 'Codex ran out of room in the model's context window. Start a new thread or clear earlier history before retrying' error message.

Feedback ID: 019e3293-8d85-7c62-8275-c7d051910d12

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    appIssues related to the Codex desktop app
    on May 18, 2026
  2. added
    bugSomething isn't working
    contextIssues related to context management (including compaction)
    on May 18, 2026
  3. github-actions commented on May 18, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. emersonbusson commented on May 28, 2026

    @emersonbusson

    I think this is the same underlying issue as #7808: the turn hits the context window mid-flight and the session ends instead of auto-compacting and retrying. #7808 has the root-cause analysis and a ready fix branch (additive mid-turn recovery) if it helps triage this one.

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

    appIssues related to the Codex desktop appbugSomething isn't workingcontextIssues related to context management (including compaction)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions