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

Claude Opus 4.5 requests return error 400

Open
#703 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos, swift
Domain
ai, api

Research direction

Start with the attached Copilot for Xcode log and the Agent request path used when Claude Opus 4.5 is selected. Inspect the outgoing request body, especially the thinking blocks identified in the 400 response, and compare it with the model's expected format. Done means an Agent request with Claude Opus 4.5 is accepted instead of returning this error.

Written by the indexing model from the issue text.

Description

reviewed

Describe the bug
When making an Agent request using Claude Opus 4.5 I have been getting the same error message all day:

Sorry, an error occurred while generating a response. Details: unhandled status from server: 400 {"error": {"message": "messages.1.content.0.thinking: each thinking block must contain thinking","code":"invalid_request_body"}} Request ID: xxx

Versions

  • Copilot for Xcode: 0.46.0
  • Xcode: 26.2.0
  • macOS: 26.2

Steps to reproduce

  1. Select Claude Opus 4.5 as model
  2. Select Agent mode
  3. Enter prompt
  4. Error is returned

Screenshots
Image

Logs
github-copilot-for-xcode.log

Additional context
Attempted the following to try and resolve:

  • Signing out then back in
  • Cleaning DerivedData/Copilot cache
  • Restarting device
  • Uninstalling / Reinstalling Copilot
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.