Skip to content

[FEATURE]: support extracting reasoning XML #6337

Closed

Description

@snipeship

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Add support for extractReasoningMiddleware() to be able to parse <think> (or other) XML tags so opencode will show the correct Thinking... UI.

Here is how it currently looks like:

Image

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Dec 29, 2025
  2. github-actions commented on Dec 29, 2025

    @github-actions
    Contributor

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

    The core of your request is to use extractReasoningMiddleware() from the AI SDK to properly parse reasoning/thinking XML tags. This is part of a broader feature set around AI SDK middleware support (#2917) and rendering reasoning content in the UI (#4033, #3703).

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

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

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions