Title: Bug Report: Claude Models Fail in Copilot for Xcode (HTTP 400 – Invalid Request Body) · Issue #714 · github/CopilotForXcode · GitHub
Open Graph Title: Bug Report: Claude Models Fail in Copilot for Xcode (HTTP 400 – Invalid Request Body) · Issue #714 · github/CopilotForXcode
X Title: Bug Report: Claude Models Fail in Copilot for Xcode (HTTP 400 – Invalid Request Body) · Issue #714 · github/CopilotForXcode
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 resul...
Open Graph 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 ...
X 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 ...
Opengraph URL: https://github.com/github/CopilotForXcode/issues/714
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug Report: Claude Models Fail in Copilot for Xcode (HTTP 400 – Invalid Request Body)","articleBody":"\u003c!-- Please search existing issues to avoid creating duplicates --\u003e\n\n**Describe the bug**\nClaude 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.\nAs a result, Claude models are effectively unusable in Agent mode and auto-edit workflows in Xcode.\n\nThis does not occur with non-Claude models.\n**Versions**\nCopilot for Xcode: Latest available version (at time of report)\nXcode: 26.2 (reproducible across recent versions)\nmacOS: 15.7.4+ (Sequoia)\n\nCopilot Pro subscription is active and confirmed via github education plan.\n**Steps to reproduce**\n1. Open Xcode\n2. Enable GitHub Copilot for Xcode\n3. Select a Claude model (Sonnet 4.5 or Opus 4.5)\n4. Enable Agent mode (or attempt auto-edit / multi-step tasks)\n5. Ask Copilot to perform a file edit or multi-step task\n6. Observe failure during or immediately after generation\n\n**Screenshots**\n\u003cimg width=\"375\" height=\"140\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ffc3977a-8ae1-41f4-b52e-f5fc42ebc593\" /\u003e\n\u003cimg width=\"357\" height=\"391\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/648cf1fd-1d9b-42ca-85b6-606000f0ed35\" /\u003e\n\u003cimg width=\"367\" height=\"528\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/d66700b6-6895-46aa-8869-ff4bc40a431f\" /\u003e\n\u003cimg width=\"364\" height=\"293\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/5f6647a8-6c66-4ab3-95a0-6d709b008d4e\" /\u003e\n\n\n\n\n**Logs**\n\n\n[github-copilot-for-xcode.log](https://github.com/user-attachments/files/24693473/github-copilot-for-xcode.log)\n\n\n\n**Additional context**\nIssue only occurs with Claude models\n\nOther Copilot-supported models work correctly in Agent mode\n\nReproduced after:\n\nFull uninstall \u0026 reinstall of Copilot for Xcode\n\nClearing Copilot, Claude, and Xcode extension caches\n\nRebooting macOS\n\nRe-authenticating GitHub\n\nStrongly suggests a Copilot ↔ Claude integration issue, where Copilot sends malformed or empty thinking blocks that Claude strictly rejects\n\nThis appears to be a backend schema compatibility issue, not a local configuration problem\n\nImpact: Claude models cannot be used for Agent workflows in Xcode, forcing manual copy-paste usage and degrading developer productivity.\n","author":{"url":"https://github.com/abbinavv","@type":"Person","name":"abbinavv"},"datePublished":"2026-01-18T04:06:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/714/CopilotForXcode/issues/714"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ddbff360-5e88-fcd9-37b8-b1bfc4043882 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E16:1EAA85:18C63FA:2132C39:696EB27C |
| html-safe-nonce | f8378dd01f983d4dfae0513573a9a559ae2872b56ff53be3a16064e1cbd5611c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTE2OjFFQUE4NToxOEM2M0ZBOjIxMzJDMzk6Njk2RUIyN0MiLCJ2aXNpdG9yX2lkIjoiNTY3ODQ5MDIyNjQ3MjY5NDM5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 76bf557d0db91276277ae368b5ac797bf7a1fc0c300f15b222ff601617caf67d |
| hovercard-subject-tag | issue:3826307278 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/CopilotForXcode/714/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c950629fee29a2dd72323a7e171fed6f5152c3ea1c00c06fc8af70029a8cc2a1/github/CopilotForXcode/issues/714 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c950629fee29a2dd72323a7e171fed6f5152c3ea1c00c06fc8af70029a8cc2a1/github/CopilotForXcode/issues/714 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abbinavv |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/github/CopilotForXcode git https://github.com/github/CopilotForXcode.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 860035177 |
| octolytics-dimension-repository_nwo | github/CopilotForXcode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 860035177 |
| octolytics-dimension-repository_network_root_nwo | github/CopilotForXcode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width