Skip to content

TUI runs out of context with gpt-5.5 despite auto-compact config #19183

Closed as duplicate

Description

@brandomagnani

What happened

In Codex CLI TUI, a long chat repeatedly failed with:

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

Config

model = "gpt-5.5"
# model_context_window = 400000
# model_auto_compact_token_limit = 300000

Expected

The TUI should auto-compact before reaching the model context limit, or explain why auto-compaction did not run or did not apply.

Notes

This happened repeatedly in the same chat.

Activity

  1. added
    bug
    CLI
    context
    TUI
    on Apr 23, 2026
  2. removed
    TUI
    CLI
    on Apr 23, 2026
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