github / github/CopilotForXcode

Bug Report: Claude Models Fail in Copilot for Xcode (HTTP 400 – Invalid Request Body)

未關閉
#714 4 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
reviewed
主要語言
Swift
星號
6.3k
分支
2k
平均合併
2 分鐘
30 天內合併 PR
2

描述

**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**
1. Open Xcode
2. Enable GitHub Copilot for Xcode
3. Select a Claude model (Sonnet 4.5 or Opus 4.5)
4. Enable Agent mode (or attempt auto-edit / multi-step tasks)
5. Ask Copilot to perform a file edit or multi-step task
6. Observe failure during or immediately after generation

**Screenshots**
Image
Image
Image
Image

**Logs**

[github-copilot-for-xcode.log](https://github.com/user-attachments/files/24693473/github-copilot-for-xcode.log)

**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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。