CAPIError: 400 Unrecognized request argument 'reasoning_effort' when compacting after switching models
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the bug
When running /compact in Copilot CLI after switching from the Claude Opus 4.6 model to the GPT-4.1 model, I receive the following error:
- If /compact is run automatically by Copilot:
- Execution failed: CAPIError: 400 Unrecognized request argument supplied: reasoning_effort (Request ID: `ID`)
- If /compact is run manually by me:
- Compaction Failed: CAPIError: 400 Unrecognized request argument supplied: reasoning_effort
### Affected version
1.0.19
### Steps to reproduce the behavior
1. Start a session using Claude Opus 4.6 (or any model supporting reasoning_effort).
2. Switch to GPT-4.1.
3. Run /compact (either automatically or manually).
4. Observe the error above.
### Expected behavior
Copilot CLI should clear or ignore unsupported parameters when switching models, allowing /compact to run without errors.
### Additional context
- The error does not occur if I switch back to a model supporting reasoning_effort.
- This appears to be a session state compatibility issue when switching models.
貢獻指南
研究方向
Start by reproducing the reported flow in Copilot CLI: begin with Claude Opus 4.6, switch to GPT-4.1, then run /compact both manually and automatically. Trace the session state used by model switching and compaction; done means /compact completes successfully after the switch without the reported CAPIError.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- shell
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100