Skip to content

fix(tui): stop streaming markdown/code after message completes#13854

Open
mocksoul wants to merge 24 commits intoanomalyco:betafrom
mocksoul:fix/streaming-table-last-row
Open

fix(tui): stop streaming markdown/code after message completes#13854
mocksoul wants to merge 24 commits intoanomalyco:betafrom
mocksoul:fix/streaming-table-last-row

Conversation

@mocksoul
Copy link

@mocksoul mocksoul commented Feb 16, 2026

Summary

  • TextPart passes streaming={true} unconditionally — even for completed messages
  • This causes opentui to always skip the last table row (treated as potentially incomplete)
  • Derive streaming state from message.time.completed so finished messages render all rows

Fixes #13855

Note

Full fix requires companion change in opentui (streaming setter must rebuild tables on true→false transition). See anomalyco/opentui#696

thdxr and others added 24 commits February 8, 2026 18:43
Resolved conflicts:
- Translation files: kept dev's proper localized versions
- prompt/index.tsx: preserved handoff functionality with dev's placeholderText() pattern
- home.tsx: kept dev's simpler layout
TextPart passed streaming={true} unconditionally, causing opentui to
always skip the last table row (treated as potentially incomplete).
Now streaming is derived from message completion state, so completed
messages render all table rows correctly.
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

Why related: This PR addresses the same issue — preventing the last table row from being truncated/skipped after streaming completes. Both PRs are fixing the same behavior where incomplete messages cause the last row to be dropped, and both likely involve adjusting the streaming state logic for completed messages.

@opencode-agent opencode-agent bot force-pushed the beta branch 16 times, most recently from d229e96 to fa79b48 Compare February 17, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants