Bug Report: Claude Models Fail in Copilot for Xcode (HTTP 400 – Invalid Request Body)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- macos
- Lĩnh vực
- ai, desktop-dev
Hướng nghiên cứu
Bắt đầu với github-copilot-for-xcode.log và tái hiện lỗi Agent-mode với Claude và một model không phải Claude. So sánh request và thông tin chi tiết về lỗi cho cả hai đường đi, sau đó xác minh rằng Claude hoàn tất việc chỉnh sửa tệp hoặc một tác vụ nhiều bước mà không gặp lỗi HTTP 400.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
Claude models consistently fail in GitHub Copilot for Xcode with an HTTP 400 Bad Request error. The error indicates an invalid_request_body caused by a malformed or empty thinking block in the request payload.
As a result, Claude models are effectively unusable in Agent mode and auto-edit workflows in Xcode.
This does not occur with non-Claude models.
Versions
Copilot for Xcode: Latest available version (at time of report)
Xcode: 26.2 (reproducible across recent versions)
macOS: 15.7.4+ (Sequoia)
Copilot Pro subscription is active and confirmed via github education plan.
Steps to reproduce
- Open Xcode
- Enable GitHub Copilot for Xcode
- Select a Claude model (Sonnet 4.5 or Opus 4.5)
- Enable Agent mode (or attempt auto-edit / multi-step tasks)
- Ask Copilot to perform a file edit or multi-step task
- Observe failure during or immediately after generation
Screenshots
Logs
Additional context
Issue only occurs with Claude models
Other Copilot-supported models work correctly in Agent mode
Reproduced after:
Full uninstall & reinstall of Copilot for Xcode
Clearing Copilot, Claude, and Xcode extension caches
Rebooting macOS
Re-authenticating GitHub
Strongly suggests a Copilot ↔ Claude integration issue, where Copilot sends malformed or empty thinking blocks that Claude strictly rejects
This appears to be a backend schema compatibility issue, not a local configuration problem
Impact: Claude models cannot be used for Agent workflows in Xcode, forcing manual copy-paste usage and degrading developer productivity.
- Ngôn ngữ chính
- Swift
- Star
- 6.3k
- Fork
- 2k
- Merge trung bình
- 3 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/CopilotForXcode
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
github/CopilotForXcode#181 · 2 reaction ·
-
Add ability to attach Copilot window only to Xcode projects/workspaces, ignoring standalone files Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
github/CopilotForXcode#945 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
github/CopilotForXcode#943 ·
-
Luisgerardomartinezlara Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
github/CopilotForXcode#936 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
github/CopilotForXcode#934 ·
Tất cả issue của github/CopilotForXcode
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
manaflow-ai/cmux#13763 ·
-
type: feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
googleapis/google-cloud-swift#1036 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
wultra/mtoken-sdk-ios#253 ·
-
The correction-threshold rationale says 17 restraint cases collide; the current corpus has 16 Đang mởarea:dictation documentation P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
uttrflow/uttrflow-swift#1180 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100