All Codex models in prompts/codex-models.json have auto_compact_token_limit: null. When null, effective_compaction_max_context_chars falls back to DEFAULT_MAX_CONTEXT_CHARS (240,000 chars ≈ 60k tokens), but Codex's actual context window is 272,000 tokens — far larger. This means the TUI keeps sending an ever-growing context to the API for many turns before compaction fires, causing noticeable response and rendering slowdown in longer sessions.
Setting a reasonable auto_compact_token_limit on each Codex model would trigger compaction well before the context bloats. A value around 100_000 tokens is a sensible default — large enough not to compact prematurely, small enough to keep response times fast.
// prompts/codex-models.json — apply to each Codex model entry
{
"auto_compact_token_limit": 100000,
...
}
All Codex models in
prompts/codex-models.jsonhaveauto_compact_token_limit: null. When null,effective_compaction_max_context_charsfalls back toDEFAULT_MAX_CONTEXT_CHARS(240,000 chars ≈ 60k tokens), but Codex's actual context window is 272,000 tokens — far larger. This means the TUI keeps sending an ever-growing context to the API for many turns before compaction fires, causing noticeable response and rendering slowdown in longer sessions.Setting a reasonable
auto_compact_token_limiton each Codex model would trigger compaction well before the context bloats. A value around100_000tokens is a sensible default — large enough not to compact prematurely, small enough to keep response times fast.