effortLevel config is not respected when switching models via /model command
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the feature or problem you'd like to solve
_No response_
### Proposed solution
The effortLevel setting in ~/.copilot/config.json is correctly applied when a new session starts. However, when switching models mid-session using the /model command, the effort level resets to "medium" by
default instead of inheriting the value from the config.
Expected behavior: When switching models via /model, the effort level should default to the value set in config.json (effortLevel), so users don't have to manually re-select it every time.
Suggested improvement: Either:
1. Pre-select the configured effortLevel in the /model effort picker UI, or
2. Support per-model default effort levels in config.json (e.g., "models": { "claude-sonnet-4.6": { "effortLevel": "high" } })
Steps to reproduce:
1. Set "effortLevel": "high" in ~/.copilot/config.json
2. Start a new session — effort level is correctly "high" ✅
3. Use /model to switch to another model — effort level resets to "medium" ❌
4. Use /model to switch back — still "medium" ❌
### Example prompts or workflows
_No response_
### Additional context
_No response_
貢獻指南
研究方向
Start at the /model command handling and the loading of ~/.copilot/config.json, then reproduce the switch with effortLevel set to high. Trace where the effort picker defaults during a model change; done means switching models preserves the configured effortLevel instead of resetting to medium.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- shell
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 62/100