-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
Bug
The last row of markdown tables is always missing after message streaming completes.
Reproduction
- Enable
OPENCODE_EXPERIMENTAL_MARKDOWN=true - Ask the AI to output a markdown table with 3+ data rows
- After streaming completes, the last row is not visible
Root cause
Two issues work together:
- opencode:
TextPartpassesstreaming={true}unconditionally to<markdown>and<code>elements — even for completed messages - opentui: During streaming, the last table row is skipped (
rows.slice(0, -1)) as potentially incomplete. Whenstreamingchanges tofalse,updateBlocks()skips the table becausetokenRawhasn't changed — the missing row is never added back
Fix
- opencode: Derive streaming from
message.time.completed— fix(tui): stop streaming markdown/code after message completes #13854 - opentui: Use
clearCache()onstreaming: true→falsetransition — fix(markdown): rebuild table when streaming ends opentui#696
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui