Skip to content

Codex Spark unable to compact conversations #11641

Closed

Description

@dionny

What version of Codex CLI is running?

0.100.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.3-codex-spark-xhigh

What platform is your computer?

No response

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"
}
}

What steps can reproduce the bug?

I can reliably reproduce the problem. Compaction doesn't seem to be working with Codex Spark.

What is the expected behavior?

Compaction should work.

Additional information

No response

Activity

  1. changed the title [-]Codex Spark seems to fail to compact[/-] [+]Codex Spark unable to compact conversations[/+] on Feb 12, 2026
  2. aibrahim-oai commented on Feb 12, 2026

    @aibrahim-oai
    Contributor

    Can you do /feedback?

  3. dionny commented on Feb 12, 2026

    @dionny
    Author
    ■ 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"
      }
    }
    
    ────────────────────────────────────────────────────────────────────────────────────
    
    • Model changed to gpt-5.3-codex xhigh
    
    • Context compacted
    

    This suggests Codex Spark has a smaller context window than Codex.

  4. dionny commented on Feb 12, 2026

    @dionny
    Author

    Done! Thread ID = 019c53f7-344a-7fe3-a92b-631660a8567f

  5. skypher commented on Feb 14, 2026

    @skypher

    Here's mine: 019c5b45-9eeb-7ea0-9623- f917e08494fe

  6. added a commit that references this issue on Feb 21, 2026
  7. added
    contextIssues related to context management (including compaction)
    on Mar 23, 2026
  8. 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"

  9. ioma8 commented on Apr 9, 2026

    @ioma8

    This needs to be fixed! Disrupts flow!

  10. JohnnyVicious commented on Apr 9, 2026

    @JohnnyVicious

    I stopped using codex-spark all together coz of this, the only workaround is switching model to GPT-5.4 with a restart/resume and then run compact. But after a bit you run into the same error again after you switched to spark.

  11. 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

    bugSomething 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