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 — Claude Models Thinking block error · Issue #10970 · anomalyco/opencode

Claude Models Thinking block error #10970

New issue
Copy link
New issue
Copy link
Closed
Closed
Claude Models Thinking block error#10970
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't working

Description

@tungdapoet
tungdapoet
opened on Jan 28, 2026
Issue body actions

Description

This error happens when start writing tools, or streaming in thinking block

Image

Plugins

oh-my-opencode

OpenCode version

Any version

Steps to reproduce

Ask agent to write something

Screenshot and/or share link

No response

Operating System

macOS 26.1

Terminal

No response

Activity

  1. tungdapoet
    added
    bugSomething isn't working
    on Jan 28, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 28, 2026
  3. github-actions commented on Jan 28, 2026

    @github-actions
    github-actionsBot
    on Jan 28, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Expected thinking or redacted_thinking but found tool_use #8010: Expected thinking or redacted_thinking but found tool_use (similar error on macOS)
    • Claude extended thinking + tool use: signature not preserved in message history #6176: Claude extended thinking + tool use: signature not preserved in message history (oh-my-opencode plugin)
    • [bug] v0.8.0 Introduced thinking block bug with Claude Sonnet 4: "AI_APICallError: messages.3.content.0.type: Expected thinking or redacted_thinking, but found text." #2599: Thinking block bug with Claude Sonnet 4 (same API validation error after tool invocation)
    • Claude Extended Thinking: assistant message content order causes API error #9364: Claude Extended Thinking: assistant message content order causes API error (root cause analysis)
    • Expected thinking or redacted_thinking, but found tool_use #3077: Expected thinking or redacted_thinking, but found tool_use (recurring error)

    Feel free to ignore if none of these address your specific case.

  4. rekram1-node commented on Feb 4, 2026

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

    what provider?

  5. carlesandres commented on Feb 4, 2026

    @carlesandres
    carlesandres
    on Feb 4, 2026
    More actions

    This is happening to me while I am building with opencode/gpt-5.2-codex as my primary BUILD agent and I run a /commit command which is bound to github-copilot/claude-sonnet-4.5

    ---
    description: Commit changes with conventional commit format
    model: github-copilot/claude-sonnet-4.5
    ---
    
    Analyze code changes and create well-structured git commits following conventional commit standards.

    EDIT: Actually no. Apologies. This is what's happening to me. I will open a separate issue.

    Image
  6. rekram1-node commented on Feb 4, 2026

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

    @carlesandres what version are u using? There was a bug specifically for the github copilot provider but it should be fixed now

  7. carlesandres commented on Feb 4, 2026

    @carlesandres
    carlesandres
    on Feb 4, 2026
    More actions

    @rekram1-node I'm not too sure because I have updated to the latest now. I'll see if I can replicate it and I'll report back if it's still an issue.

  8. DonaldoDes commented on Feb 5, 2026

    @DonaldoDes
    DonaldoDes
    on Feb 5, 2026
    More actions

    This is happening to me while I am building with opencode/gpt-5.2-codex as my primary BUILD agent and I run a /commit command which is bound to github-copilot/claude-sonnet-4.5


    description: Commit changes with conventional commit format
    model: github-copilot/claude-sonnet-4.5

    Analyze code changes and create well-structured git commits following conventional commit standards.
    EDIT: Actually no. Apologies. This is what's happening to me. I will open a separate issue.

    Image

    @carlesandres I had the exact same issue with Anthropic this the reason why I submitted the PR #12131 . If you need a quick workaround, you can simply disable the thinking mode.

  9. DonaldoDes
    added 2 commits that reference this issue on Feb 6, 2026

    fix(session): preserve thinking text whitespace for signature integrity

    This issue will close once commit e8d6d1c is merged into the 'dev' branch.
    e8d6d1c

    fix(provider): reorder reasoning blocks first in assistant messages

    This issue will close once commit 993c109 is merged into the 'dev' branch.
    993c109
  10. carlesandres commented on Feb 6, 2026

    @carlesandres
    carlesandres
    on Feb 6, 2026
    More actions

    Thanks @DonaldoDes. I've not come across the issue in recent versions, but it's good to know about that PR and the workaround.

  11. github-actions commented on Apr 8, 2026

    @github-actions
    github-actionsBot
    on Apr 8, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  12. github-actions
    closed this as completedon Apr 8, 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

bugSomething isn't working

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.