anomalyco / anomalyco/opencode
[Bug] Reasoning block renders raw Markdown / jumps while streaming in Desktop
@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
- Open a session in OpenCode Desktop with a model that emits reasoning (e.g. a provider that streams a reasoning part).
- Start a new assistant turn that produces a longer reasoning block containing headings / lists / emphasis.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.