Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#714 4 comments 2 reactions 0 assignees View on GitHub

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

reviewed

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

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/CopilotForXcode

All issues in github/CopilotForXcode

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.