Skip to content

Suddenly fails to compact by itself and it shows 0 token usage. #11071

Closed

Description

@xesws

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

■ 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"
}
}
Token usage: total=0 input=0 output=0

Activity

  1. xesws commented on Feb 8, 2026

    @xesws
    Author

    ■ Codex ran out of room in the model's context window. Start a new thread or clear earlier history before retrying.
    Token usage: total=0 input=0 output=0
    To continue this session, run codex resume 019c371f-c16b-7f30-9e1f-d3b0418b681a

  2. added a commit that references this issue on Feb 21, 2026
  3. yassirusa commented on Apr 6, 2026

    @yassirusa

    When will this be worked on. Codex-5.3 and codex-5.3-spark are completely useless and they keep churning tokens without editing any code until they "run out of room"

  4. added
    bug
    context
    on May 14, 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