Do not derive model context from prompt and output token limits
還沒有人認領這個 Issue。
評估
研究方向
從 CLI 的模型詳細資料顯示開始,追蹤合成模型中繼資料的格式化方式。使用 max_prompt_tokens 100000、max_output_tokens 20000 和 max_context_window_tokens 100000 重現;完成的標誌是顯示內容回報宣告的 100000-token context window,同時保持 prompt 和 output 限制彼此獨立。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
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, andmax_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.
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/copilot-cli 的其他 Issue
-
triage
難度 2/5 1-3 小時 新手友好度 72/100
github/copilot-cli#4848 ·
-
area:agents area:mcp
難度 2/5 1-3 小時 新手友好度 72/100
github/copilot-cli#4729 ·
-
area:sessions
難度 2/5 1-3 小時 新手友好度 72/100
github/copilot-cli#4712 ·
-
Expose large_output_file_path on TaskShellProgress so clients can read complete shell-task output 未關閉area:tools
難度 2/5 1-3 小時 新手友好度 78/100
github/copilot-cli#4630 · 1 則留言 ·
-
Clarify startup message "No copilot-instructions.md found" to specify it means the repo-scoped file 未關閉area:context-memory
難度 1/5 1-3 小時 新手友好度 72/100
github/copilot-cli#4475 ·
查看 github/copilot-cli 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 90/100
danielmiessler/LifeOS#2218 ·
-
難度 1/5 1 小時以內 新手友好度 92/100
-
package-update
難度 2/5 1-3 小時 新手友好度 76/100
oSoWoSo/vOid_Community_repOsitory#148 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
-
chore
難度 1/5 1 小時以內 新手友好度 91/100
alunduil/alunduil-chezmoi#792 ·