Bug Report: Claude Models Fail in Copilot for Xcode (HTTP 400 – Invalid Request Body)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- macos
- Domain
- ai, desktop-dev
Research direction
Start with github-copilot-for-xcode.log and reproduce the Agent-mode failure with Claude and a non-Claude model. Compare the request and error details for both paths, then verify that Claude completes a file edit or multi-step task without the HTTP 400 error.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Swift
- Stars
- 6.3k
- Forks
- 2k
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/CopilotForXcode
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
github/CopilotForXcode#181 · 2 reactions ·
-
Add ability to attach Copilot window only to Xcode projects/workspaces, ignoring standalone files Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
github/CopilotForXcode#945 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
github/CopilotForXcode#943 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
github/CopilotForXcode#936 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
github/CopilotForXcode#934 ·
All issues in github/CopilotForXcode
Similar issues
-
area:dictation documentation P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
uttrflow/uttrflow-swift#1180 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
OneBusAway/onebusaway-ios#1451 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100