Using the Sonnet model via GitHub integration #8173

Closed
opened 2026-02-16 18:09:20 -05:00 by yindo · 5 comments
Owner

Originally created by @BAVhel on GitHub (Jan 31, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Using the Sonnet model via GitHub integration in OpenCode fails with:
“Bad Request: Bad Request see messages above”.

Expected Result
Model responds normally.

Actual Result
Request fails with:
“Bad Request: Bad Request see messages above”.

Environment

  • GitHub account connected: Yes
    Notes
    This appears to be a request/response failure from the provider. No additional error details are shown beyond “see messages above”.

in previous versions of OpenCode, worked fine.
Upgrading sst/tap/opencode
1.1.47 -> 1.1.48

for model Claude Opus 4.5 GitHub Copilot
responce:
messages.1.content.0: Invalid signature in thinking block

Plugins

No response

OpenCode version

1.1.48

Steps to reproduce

  1. Open OpenCode
  2. Select model: Claude Sonnet 4.5 GitHub Copilot
  3. Send any prompt (e.g., “Hello”)

Screenshot and/or share link

No response

Operating System

macOS

Terminal

ghostty

Originally created by @BAVhel on GitHub (Jan 31, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Using the Sonnet model via GitHub integration in OpenCode fails with: “Bad Request: Bad Request see messages above”. **Expected Result** Model responds normally. **Actual Result** Request fails with: “Bad Request: Bad Request see messages above”. **Environment** - GitHub account connected: Yes **Notes** This appears to be a request/response failure from the provider. No additional error details are shown beyond “see messages above”. in previous versions of OpenCode, worked fine. Upgrading sst/tap/opencode 1.1.47 -> 1.1.48 for model Claude Opus 4.5 GitHub Copilot responce: messages.1.content.0: Invalid `signature` in `thinking` block ### Plugins _No response_ ### OpenCode version 1.1.48 ### Steps to reproduce 1. Open OpenCode 2. Select model: Claude Sonnet 4.5 GitHub Copilot 3. Send any prompt (e.g., “Hello”) ### Screenshot and/or share link _No response_ ### Operating System macOS ### Terminal ghostty
yindo added the bug label 2026-02-16 18:09:20 -05:00
yindo closed this issue 2026-02-16 18:09:20 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 31, 2026):

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

  • #6418: Exact same error message - "Invalid signature in thinking block". Occurs when switching models or with certain model configurations
  • #11157: GitHub Copilot provider + "Bad Request" error. Root cause identified: GitHub Copilot API rejects messages with role: "tool" during summarization
  • #10970: Claude-specific thinking block error that occurs with writing tools or streaming in thinking blocks
  • #11413: "400 Bad Request" error with strict schema validation, also appears after v1.1.47-1.1.48 changes
  • #8417: "Bad Request: Bad Request" error with GitHub Copilot authentication on other models

The error pattern suggests thinking block signature validation changes in v1.1.48 may have broken compatibility with GitHub Copilot's API. Please check these related issues first to see if there's a common fix or workaround.

Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Jan 31, 2026): This issue might be a duplicate of existing issues. Please check: - #6418: Exact same error message - "Invalid `signature` in `thinking` block". Occurs when switching models or with certain model configurations - #11157: GitHub Copilot provider + "Bad Request" error. Root cause identified: GitHub Copilot API rejects messages with `role: "tool"` during summarization - #10970: Claude-specific thinking block error that occurs with writing tools or streaming in thinking blocks - #11413: "400 Bad Request" error with strict schema validation, also appears after v1.1.47-1.1.48 changes - #8417: "Bad Request: Bad Request" error with GitHub Copilot authentication on other models The error pattern suggests thinking block signature validation changes in v1.1.48 may have broken compatibility with GitHub Copilot's API. Please check these related issues first to see if there's a common fix or workaround. Feel free to ignore if your specific case differs from these.
Author
Owner

@rekram1-node commented on GitHub (Jan 31, 2026):

Can you send me a session you got this in? opencode export > session.json

I cannot replicate

Image
@rekram1-node commented on GitHub (Jan 31, 2026): Can you send me a session you got this in? `opencode export > session.json` I cannot replicate <img width="1106" height="654" alt="Image" src="https://github.com/user-attachments/assets/6b1e4f39-a8a1-4ee9-b33b-5c5959c6a8cb" />
Author
Owner

@BAVhel commented on GitHub (Jan 31, 2026):

to @rekram1-node
Hm interesting. A can't reproduce it now in any new session, but still reproducible in oldest one. Probably issue could be closed. Not big deal if error happens in older session.

@BAVhel commented on GitHub (Jan 31, 2026): to @rekram1-node Hm interesting. A can't reproduce it now in any new session, but still reproducible in oldest one. Probably issue could be closed. Not big deal if error happens in older session.
Author
Owner

@rekram1-node commented on GitHub (Jan 31, 2026):

gotcha,

@rekram1-node commented on GitHub (Jan 31, 2026): gotcha,
Author
Owner

@rekram1-node commented on GitHub (Feb 1, 2026):

Ah yeah it's cause u switched models mid session, there is a bug for the copilot provider regarding that, Ihave a fix in dev

@rekram1-node commented on GitHub (Feb 1, 2026): Ah yeah it's cause u switched models mid session, there is a bug for the copilot provider regarding that, Ihave a fix in dev
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8173