Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#714 4 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
macos
Bereich
ai, desktop-dev

Rechercherichtung

Beginne mit github-copilot-for-xcode.log und reproduziere den Agent-mode-Fehler mit Claude und einem Nicht-Claude-Modell. Vergleiche die Anfrage und die Fehlerdetails für beide Pfade und überprüfe anschließend, dass Claude eine Dateibearbeitung oder eine mehrstufige Aufgabe ohne den HTTP 400-Fehler abschließt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Swift
Sterne
6.3k
Forks
2k
Ø Merge
3 T. 21 Std.
Gemergte PRs (30 T.)
2

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/CopilotForXcode

Alle Issues in github/CopilotForXcode

Ähnliche Issues

Weitere Issues zu Swift

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.