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
Do not derive model context from prompt and output token limits #4638
The model details display can overstate total context if it derives context by adding max_prompt_tokens and max_output_tokens. These are independent maxima and their sum may exceed max_context_window_tokens.
Affected version
1.0.81
Steps to reproduce the behavior
Return synthetic model metadata with max_prompt_tokens: 100000, max_output_tokens: 20000, and max_context_window_tokens: 100000.
Open the CLI model details display.
Check whether it reports 120,000 tokens instead of the declared 100,000-token context window.
Expected behavior
Display max_context_window_tokens as the total context window. Treat prompt and output limits as independent maxima rather than values whose sum defines context.
Additional context
The Copilot SDK/runtime preserves the independent context value, so this appears limited to CLI presentation.
Thanks for the report. We've shipped fixes in this area since this was filed, and we believe this may now be resolved. Could you retest on the latest release (Copilot CLI v1.0.103) and let us know whether you still see it? If we don't hear back in a couple of weeks, we may close this issue — you can always reopen it.
Triaged as part of a Copilot SDK backlog review, with help from GitHub Copilot.
Activity
patniko commentedon Oct 26, 2026
Thanks for the report. We've shipped fixes in this area since this was filed, and we believe this may now be resolved. Could you retest on the latest release (Copilot CLI v1.0.103) and let us know whether you still see it? If we don't hear back in a couple of weeks, we may close this issue — you can always reopen it.
Triaged as part of a Copilot SDK backlog review, with help from GitHub Copilot.