mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[GH-ISSUE #208] [BUG] Text content becomes invisible during rapid updates (streaming) #47
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @joshkotrous on GitHub (Oct 9, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/208
Summary
When updating text content rapidly (e.g., streaming AI responses), the text becomes completely invisible after the initial render, though the layout space is correctly allocated. A single update works perfectly, but multiple rapid updates cause invisible text - even when throttled to 500ms intervals.
Environment
Expected Behavior
Text content should update and remain visible during streaming, similar to how the counter example updates every 50ms.
Actual Behavior
Minimal Reproduction
Result: The label shows but the streaming text is invisible (layout space allocated but no visible characters).
What I Tested
All attempts failed except showing only the final result:
contentprop:<text content={text} />instead of<text>{text}</text>key={index}key={${index}-${content.length}}Key Finding
Questions
@kommander commented on GitHub (Oct 9, 2025):
There are no limitations I am aware of from core perspective. There is a solidjs streaming example that works well. Maybe there is something off with react, we currently mainly use solid, as that is what is used in opencode.
Our react maintainer is off currently, but maybe can have a look when he's back @msmps
@msmps commented on GitHub (Oct 9, 2025):
I might be missing something here so forgive me but I am able to get your reproduction working? Are you able to try with
v0.1.26as this does include some bug fixes@joshkotrous commented on GitHub (Oct 9, 2025):
It looks like this has been fixed in
0.1.26, upgrade fixed it 🚀