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
fix(agents): resolve context window for models with slash in ID (e.g. OpenRouter proxy models)
Remove the `!ref.model.includes("/")` guard in `resolveContextTokensForModel()` which blocked qualified cache key lookup for models like `anthropic/claude-sonnet-4` accessed through proxy providers.
Two call sites fixed:
1. Explicit provider path (params.provider && ref) -- safe because provider is explicitly given
2. Last resort implicit provider path (!params.provider && ref) -- bare key already failed, trying qualified key has no downside
Fixes: max context showing DEFAULT_CONTEXT_TOKENS (200K) instead of actual model's context window for proxy models
0 commit comments