github / github/copilot-cli

Copilot CLI incorrectly switches back to previous model after switching to BYOK

オープン
#3,978 コメント 1 件 リアクション 5 件 担当者 0 名 GitHub で見る
area:models area:sessions
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### Describe the bug

I ran out of AIC while using claude-sonnet-4.6. After exiting GitHub Copilot and resuming my session using BYOK, the Copilot CLI automatically switched back to claude-sonnet-4.6, despite having supposedly switched to the BYOK configuration.

### Affected version

_No response_

### Steps to reproduce the behavior

1. Run out of AIC while using claude-sonnet-4.6.
2. Exit GitHub Copilot.
3. Resume session using BYOK.
4. Observe that Copilot CLI automatically switches back to claude-sonnet-4.6 or showing this:

```
Model 'glm-5.2:cloud' not found on provider at https://ollama.com/v1 (HTTP 404).
Check that the model is available on your provider.
```

Image

### Expected behavior

The CLI should respect the BYOK configuration and not revert to the previously used model after a session restart.

### Additional context

_No response_

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

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

調査の方向性

まず、記載されたセッション再起動フローを再現します。AICを使い切り、Copilot CLIを終了し、BYOKで再開します。Ollamaプロバイダーのエラーを含め、BYOKの設定と選択されたモデルがどのように復元されるかを追跡します。再開したBYOKセッションが以前のモデルに戻らず、設定済みのモデルを維持すれば完了です。

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

評価

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

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

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