Bug Report: Claude Models Fail in Copilot for Xcode (HTTP 400 – Invalid Request Body)
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
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.
- Vorherrschende Sprache
- Swift
- Sterne
- 6.3k
- Forks
- 2k
- Ø Merge
- 3 T. 21 Std.
- Gemergte PRs (30 T.)
- 2
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus github/CopilotForXcode
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
github/CopilotForXcode#181 · 2 Reaktionen ·
-
Add ability to attach Copilot window only to Xcode projects/workspaces, ignoring standalone files Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
github/CopilotForXcode#945 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
github/CopilotForXcode#943 ·
-
Luisgerardomartinezlara Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 10/100
github/CopilotForXcode#936 · 2 Kommentare ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 10/100
github/CopilotForXcode#934 ·
Alle Issues in github/CopilotForXcode
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
manaflow-ai/cmux#13763 ·
-
type: feature request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
googleapis/google-cloud-swift#1036 · 1 Kommentar ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
wultra/mtoken-sdk-ios#253 ·
-
area:dictation documentation P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
uttrflow/uttrflow-swift#1180 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100