Codex models missing auto_compact_token_limit causes sluggish TUI as context grows
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Domain
- ai, performance
Research direction
Open prompts/codex-models.json and review each Codex model entry. Set auto_compact_token_limit to 100000 for every Codex model, then verify that no Codex entry remains null and that the JSON stays valid.
Written by the indexing model from the issue text.
Description
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,
...
}
- Dominant language
- Rust
- Stars
- 640
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from browser-use/terminal
-
holehe Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
browser-use/terminal#117 ·
-
terminal Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
browser-use/terminal#114 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
browser-use/terminal#113 ·
-
Q2 Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
browser-use/terminal#104 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
browser-use/terminal#4 · 4 comments ·
All issues in browser-use/terminal
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100