Copilot CLI incorrectly switches back to previous model after switching to BYOK
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
### 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.
```
### 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_
Beitragsleitfaden
Rechercherichtung
Beginne damit, den aufgeführten Ablauf zum Neustart einer Sitzung nachzustellen: AIC aufbrauchen, Copilot CLI beenden und mit BYOK fortfahren. Verfolge, wie die BYOK-Konfiguration und das ausgewählte Modell wiederhergestellt werden, einschließlich des Ollama-Providerfehlers. Als erledigt gilt die Aufgabe, wenn eine fortgesetzte BYOK-Sitzung ihr konfiguriertes Modell beibehält, statt auf das vorherige Modell zurückzufallen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ollama, shell
- Bereich
- ai, cli
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100