anomalyco / anomalyco/opencode

[Bug] Reasoning block renders raw Markdown / jumps while streaming in Desktop

Open
#49,360 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Sep 16, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

When the model is generating reasoning/thinking in OpenCode Desktop, the reasoning block is rendered through the Markdown streaming projection. While the message is incomplete the live projection splits the text at the last complete token and heals the trailing tail into plain text. Incomplete Markdown syntax (headings, emphasis, lists, reference-style links) renders as raw text and the layout jumps on every streaming update. Once the message completes the content is re-rendered as full Markdown and looks correct, but the in-flight state is broken/noisy.

OpenCode version

1.18.31 (Desktop, Windows 11)

Steps to reproduce
  1. Open a session in OpenCode Desktop with a model that emits reasoning (e.g. a provider that streams a reasoning part).
  2. Start a new assistant turn that produces a longer reasoning block containing headings / lists / emphasis.
  3. Watch the reasoning block while it streams: the trailing text alternates between plain and raw Markdown artifacts and the block jumps.
Screenshot and/or share link

N/A

Operating System

Windows 11

Terminal

N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.