github / github/copilot-cli

Execution failed: 421 Misdirected Request listing models

オープン
#4,868 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

triage
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

Describe the bug

Hello, sorry for resuming the issue #173 , but today:

GitHub Copilot CLI 1.0.85.
Run 'copilot update' to check for updates.

Free copilot plan, i try to do /model and i get the issue:
Error loading model list: Error: 421 "Misdirected Request\n" (Request ID: ....)

Then i tried /model auto and that worked:
Model changed from claude-sonnet-5 (medium) to Auto for this session

And now i cant go back to my selected model, doing /model claude-sonnet-5 gives:
Unable to load available models list

Is this a bug or something expected related to free plan?

Affected version

GitHub Copilot CLI 1.0.85.

Steps to reproduce the behavior
  1. Resumed an old session, using a free plan
  2. type /model
  3. See the 421 error
Expected behavior

I expect to see the list of models when typing /model and to get a "model changed" confirmation when typing /model claude-sonnet-5

Additional context

No response

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

無料プランでセッションを再開して /model を実行し、GitHub Copilot CLI 1.0.85 の失敗を再現してから、/model auto および /model claude-sonnet-5 と比較します。model-list リクエストの処理と 421 レスポンスを追跡します。モデルの一覧表示と claude-sonnet-5 の選択が、どちらも確認付きで成功すれば、issue は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell
領域
cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。