Skip to content

OpenAI-compatible parser drops streamed delta.reasoning (v2) #37553

Closed

Description

@bbartels

Description

Description

Some OpenAI-compatible providers, including vLLM, stream reasoning through choices[].delta.reasoning rather than delta.reasoning_content.

OpenCode v2 ignores these deltas, so no reasoning part is stored or displayed. The final response text still appears.

OpenCode version

0.0.0-next-15766

Steps to reproduce

  1. Configure an OpenAI-compatible provider that emits:

    {"choices":[{"delta":{"reasoning":"Thinking text"}}]}
  2. Run a reasoning model with --thinking.

  3. Observe that only the final text is displayed and reasoning is recorded as zero.
    Expected: both delta.reasoning_content and delta.reasoning produce reasoning events.
    Actual: only delta.reasoning_content is parsed.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jul 17, 2026

    @github-actions
    Contributor

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

  2. bbartels commented on Jul 17, 2026

    @bbartels
    ContributorAuthor

    Duplicate of #35283

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions