CAPIError: 400 Unrecognized request argument 'reasoning_effort' when compacting after switching models
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
### 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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện luồng được báo cáo trong Copilot CLI: bắt đầu với Claude Opus 4.6, chuyển sang GPT-4.1, sau đó chạy /compact cả thủ công lẫn tự động. Theo dõi trạng thái phiên được sử dụng khi chuyển đổi mô hình và compact; được xem là hoàn tất khi /compact hoàn thành thành công sau khi chuyển đổi mà không xuất hiện CAPIError được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100