You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Context % uses limit.context instead of limit.input for split-window models #51251
For models with a separate input limit (e.g. gpt-5.3-codex: context 400k, input 272k), the context % in the TUI divides by limit.context. Compaction uses limit.input (see usable() in packages/opencode/src/session/overflow.ts), so the % shown is lower than how close the session actually is to compacting.
Example with gpt-5.3-codex at 272k tokens: TUI shows 68%, but the input window is full.
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.
Activity
fix(tui): use effective input limit for context %
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊