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
    bugSomething isn't working
    CLIIssues related to the Codex CLI
    contextIssues related to context management (including compaction)
    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal display
    on Apr 23, 2026
  2. removed
    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal display
    CLIIssues related to the Codex 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

    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