Skip to content

Adapt streamed chat text reveal to incoming chunk rate - #667

Merged
SDSLeon merged 1 commit into
masterfrom
poracode/eager-pixel-3de32dbd
Aug 31, 2026
Merged

Adapt streamed chat text reveal to incoming chunk rate#667
SDSLeon merged 1 commit into
masterfrom
poracode/eager-pixel-3de32dbd

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Bugfix

  • Match the chat streaming typewriter to how fast tokens actually arrive so text does not stall, then dump, when providers send bursts.
  • Drop useDeferredValue on streaming markdown so the reveal stays in sync with the smoother instead of lagging a frame behind.
  • Cover multi-chunk streams in tests so progressive reveal stays monotonic and does not jump to the full length on the first chunk.

- Estimate arrival rate so reveal stays progressive across chunks
- Drop useDeferredValue from SmoothItemMarkdown
- Add a multi-chunk progressive reveal test
@SDSLeon
SDSLeon merged commit c5bac14 into master Aug 31, 2026
8 checks passed
@SDSLeon
SDSLeon deleted the poracode/eager-pixel-3de32dbd branch August 31, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant