Bug Report: Claude Models Fail in Copilot for Xcode (HTTP 400 – Invalid Request Body)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- macos
- 领域
- ai, desktop-dev
调研方向
从 github-copilot-for-xcode.log 开始,分别使用 Claude 和非 Claude 模型复现 Agent-mode 失败。比较两条路径的请求和错误详情,然后验证 Claude 能够在不出现 HTTP 400 错误的情况下完成文件编辑或多步骤任务。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Swift
- 星标
- 6.3k
- 派生
- 2k
- 平均合并
- 3 天 21 小时
- 30 天内合并 PR
- 2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/CopilotForXcode 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
github/CopilotForXcode#181 · 2 个 reaction ·
-
Add ability to attach Copilot window only to Xcode projects/workspaces, ignoring standalone files 未关闭
难度 3/5 1-2 天 新手友好度 68/100
github/CopilotForXcode#945 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
github/CopilotForXcode#943 ·
-
难度 5/5 一周以上 新手友好度 10/100
github/CopilotForXcode#936 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 10/100
github/CopilotForXcode#934 ·
查看 github/CopilotForXcode 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
maxgoedjen/secretive#840 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
manaflow-ai/cmux#13763 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
openwallet-foundation/multipaz#2028 ·