GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Invalid `signature` in `thinking` block when switching Claude models (Copilot provider) · Issue #11546 · anomalyco/opencode

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

New issue
Copy link
New issue
Copy link
Closed
#11569
Closed
Invalid signature in thinking block when switching Claude models (Copilot provider)#11546
#11569
Copy link
Assignees
rekram1-node

Description

@mouadlotfi
mouadlotfi
opened on Feb 1, 2026
Issue body actions

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.

Activity

  1. mouadlotfi
    changed the title [-]Invalid in block when switching Claude models (Copilot provider)[/-] [+]Invalid `signature` in `thinking` block when switching Claude models (Copilot provider)[/+] on Feb 1, 2026
  2. github-actions
    assigned
    rekram1-node
    on Feb 1, 2026
  3. github-actions
    added
    zenRelates to Zen
    on Feb 1, 2026
  4. github-actions commented on Feb 1, 2026

    @github-actions
    github-actionsBot
    on Feb 1, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Claude Models Thinking block error #10970: Claude Models Thinking block error - reports similar thinking block validation errors when writing tools or streaming
    • Error: Invalid signature in thinking block #6418: Error: Invalid signature in thinking block - reports the exact same error message when switching models mid-session (GLM 4.7/MinMax 2.1 to Opus 4.5)

    The error pattern appears to be a known issue with thinking block signature validation when switching between models with different thinking block implementations.

    Feel free to ignore if these don't address your specific case.

  5. rekram1-node
    removed
    zenRelates to Zen
    on Feb 1, 2026
  6. hchaudhary1 commented on Feb 1, 2026

    @hchaudhary1
    hchaudhary1
    on Feb 1, 2026
    More actions

    seeing same issue..

  7. rekram1-node commented on Feb 1, 2026

    @rekram1-node
    rekram1-node
    on Feb 1, 2026
    Member
    More actions

    got a pr up with fixes, doing some touches and adding more tests.

    The github copilot provider is non standard so we need to maintain a bit of logic ourselves

    Reacted by MagneticLine, marhensa and Aidityas Adhakim
  8. rekram1-node
    closed this as completedin #11569on Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.