Skip to content

Invalid signature in thinking block when switching Claude models (Copilot provider) #11546

@mouadlotfi

Description

@mouadlotfi

Summary

Switching from Claude Opus 4.5 to Claude Sonnet 4.5 within the same conversation (GitHub Copilot provider) fails with:

messages.3.content.0: Invalid `signature` in `thinking` block

Steps to Reproduce

  1. Start a conversation using Claude Opus 4.5 via GitHub Copilot provider.
  2. In the same conversation, switch to Claude Sonnet 4.5 (thinking enabled).
  3. Send a new message.

Actual Behavior

Request fails with the error above.

Expected Behavior

Switching between Claude models in the same thread should work, or OpenCode should strip/normalize incompatible thinking blocks to avoid signature validation failures.

Notes

  • Switching to OpenAI Codex medium in the same conversation works normally.
  • Workaround: start a new conversation before switching Claude models.
  • OpenCode version: (not provided).
  • OS: (not provided).
  • Provider: GitHub Copilot.

If you need additional logs or version info, I can follow up.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions