Skip to content

fix: keep Claude Agent models from falling back to 200k context - #5

Merged
Tarquinen merged 1 commit into
mainfrom
context-window-refresh
Nov 18, 2026
Merged

Tarquinen merged 1 commit into
mainfrom
context-window-refresh

Conversation

@Tarquinen

Copy link
Copy Markdown
Owner

Port of anomalyco/opencode#64107.

A chat's startup report has no context sizes, so models the saved catalog never got one for showed 200k. When a chat reports models with no known context size, run the full check once for them.

Adds a test in test/opencode/load.test.ts; it fails without the fix.

@Tarquinen
Tarquinen merged commit ec4305e into main Nov 18, 2026
@Tarquinen
Tarquinen deleted the context-window-refresh branch November 18, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant