Skip to content

<think> tags not properly parsed into block #4952

Closed

Description

@nicosuave

Description

(Opus 4.5 via Claude Code auth)

Seeing <thinking> tags in Claude Code output. No idea what layer the issue lies at.

Also an agent response looks wrapped in <system_prompt> tags; could be related

OpenCode version

1.0.126

Steps to reproduce

N/A

Screenshot and/or share link

Image Image

Operating System

macOS 26.0.1

Terminal

Ghostty

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 1, 2025
  2. github-actions commented on Dec 1, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if your specific case about <think> tags and <system_prompt> tags differs from the XML entity unescaping issue.

  3. rekram1-node commented on Dec 1, 2025

    @rekram1-node
    Contributor

    in claude code output? wdym

  4. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 1, 2025
  5. nicosuave commented on Dec 1, 2025

    @nicosuave
    Author

    This is OpenCode. Oh wasn't sure if response format from Anthropic is different if authed with Anthropic / Claude Code auth.

  6. rekram1-node commented on Dec 1, 2025

    @rekram1-node
    Contributor

    what model are you using that outputted think tags?

  7. nicosuave commented on Dec 1, 2025

    @nicosuave
    Author

    Oof good call out it was very old Opus (and not 4.5). Fuzzy finder + me not paying attention got me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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