Auto model fallback on quota limit shows new model in status line but does not resume — requires full restart
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
### Describe the bug
When the Copilot premium request quota is exhausted mid-session and the model is set to **Auto** (to automatically fall back to another model when the limit is hit), the CLI detects the switch and updates the bottom-left status line to reflect the new model (e.g., `Auto -> GPT-4o`), but **does not resume** the pending response or allow the session to continue. No further prompts are processed. The only recovery is to fully exit and relaunch the CLI.
### Affected version
GitHub Copilot CLI 1.0.44.
### Steps to reproduce the behavior
1. Open Copilot CLI (`copilot`).
2. Use `/model` to set the model to **Auto** (automatic fallback when quota is reached).
3. Submit prompts until the premium request quota is exhausted.
4. Observe the bottom-left status line — it updates to show the fallback model (e.g., `Auto → GPT-4o`).
5. Attempt to continue the conversation or re-submit the last prompt. It will still tell you you've reached limit.
6. Notice the CLI is stuck, no response is generated and no new prompts are processed.
### Expected behavior
After the model automatically switches to the Auto-selected fallback, the CLI should **seamlessly resume**, either retrying the last request automatically or allowing the user to continue the session without any interruption.
### Additional context
- **Operating system:** Linux
- **CPU architecture:** x86_64
- **Terminal emulator:** GNOME Terminal
- **Shell:** bash
- **Installation method:** curl install script
- **Experimental mode enabled:** no
- **Model at time of quota hit:** Claude Sonnet 4.6 (current default)
- **Fallback model shown in status line:** `Auto → GPT-4o`
**Workaround:** Exiting (`ctrl+d` or `ctrl+c×2`) and relaunching `copilot` starts a new session that uses the Auto-selected fallback model normally.
**Note:** The status line correctly reflects the new model after the switch, suggesting the fallback model selection logic *does* trigger, the bug is in the resumption step after switching.
贡献指南
调研方向
未指定源文件或测试。首先在 `/model` 设置为 Auto 的 Copilot CLI 中复现该问题,然后跟踪配额限制回退和状态行更新流程。完成的标准是:切换模型后会话能够恢复,并且无需重启即可接受后续提示。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- bash, shell
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100