Skip to content

context_length_exceeded #20866

Closed
Closed

Description

What version of Codex CLI is running?

v0.128.0

What subscription do you have?

pro

Which model were you using?

gpt-5.4 medium fast

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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

No response

What issue are you seeing?

Error running remote compact task: {
"error": {
"message": "Your input exceeds the context window of this model. Please adjust your input and try again.",
"type": "invalid_request_error",
"param": "input",
"code": "context_length_exceeded"
}
}

■ Error running remote compact task: {
"error": {
"message": "Your input exceeds the context window of this model. Please adjust your input and try again.",
"type": "invalid_request_error",
"param": "input",
"code": "context_length_exceeded"
}
}
To continue this session, run codex resume 019deafc-f137-7fa1-b492-aeeda99e1290

What steps can reproduce the bug?

Uploaded thread: 019deafc-f137-7fa1-b492-aeeda99e1290

What is the expected behavior?

No response

Additional information

No response

Activity

  1. ghost added
    bug
    on May 3, 2026
  2. added
    CLI
    context
    on May 3, 2026
  3. github-actions commented on May 3, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. removed
    CLI
    on May 3, 2026
  5. etraut-openai commented on Jun 29, 2026

    @etraut-openai
    Contributor

    Thanks for reporting this problem. Until recently, Codex used a separate endpoint and server-side logic for compaction. We recently switched to a more robust approach where the compaction logic is moved locally using the same endpoint as normal turns. This eliminates "remote compaction" errors and increases the stability and reliability of compaction operations. If you see further problems with compaction, please use /feedback and open a new bug report.

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

    bugcontext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions