Skip to content

Auto-compact fails #11723

Closed as not planned
Closed as not planned

Description

@le876

Steps to reproduce

  1. Start a long, multi-turn diagnostic conversation.
  2. Accumulate many context-heavy messages (commands/results/analysis).
  3. When context window is near limit, continue with another query.
  4. Observe hard error asking to start new thread / clear history instead of graceful summarization.

Expected behavior

  • Before hard cutoff, Codex should trigger automatic context compression (or offer an explicit “compress and continue” option).
  • It should preserve key context (e.g., session goal, environment state, diagnostic findings, IDs, executed commands).
  • Conversation should continue without requiring manual new-thread handoff.

Actual behavior

  • No auto-compression observed.
  • Session abruptly stops with context window error.
  • User must manually start a new thread or clear history, interrupting troubleshooting flow.

Activity

  1. changed the title [-]codex-5.3-spark model won't compact context automatically[/-] [+] Codex does not auto-compress context when context window is near limit, only hard fails with “out of room in the model's context window”[/+] on Feb 13, 2026
  2. changed the title [-] Codex does not auto-compress context when context window is near limit, only hard fails with “out of room in the model's context window”[/-] [+] bug: Codex does not auto-compress context when context window is near limit, only hard fails with “out of room in the model's context window”[/+] on Feb 13, 2026
  3. changed the title [-] bug: Codex does not auto-compress context when context window is near limit, only hard fails with “out of room in the model's context window”[/-] [+]Auto-compact fails[/+] on Feb 13, 2026
  4. etraut-openai commented on Feb 13, 2026

    @etraut-openai
    Contributor

    There are not enough details in the bug report for us to diagnose this, so I'm going to close.

    Feel free to open a new bug report, but please fill in all of the fields in the bug report template. Also, for a bug like this, it's really important that we have access to your logs and session details. You can upload those using the /feedback slash command. Then include the thread ID in the bug report so we can reference the logs.

  5. added a commit that references this issue on Feb 21, 2026
  6. 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"

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions