Do not derive model context from prompt and output token limits
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
CLI のモデル詳細表示から始め、合成モデルメタデータがどのようにフォーマットされるかを追跡します。max_prompt_tokens 100000、max_output_tokens 20000、max_context_window_tokens 100000 で再現します; 表示が宣言された 100000 トークンのコンテキストウィンドウを報告し、プロンプトと出力の制限を独立して維持すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 活発
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 75/100