Skip to content

fix(runtime-event): make streamed text append-only, drop chunk dedup#205

Merged
SDSLeon merged 2 commits into
masterfrom
lightcode/honest-comet-93f7cf84
Jun 19, 2026
Merged

fix(runtime-event): make streamed text append-only, drop chunk dedup#205
SDSLeon merged 2 commits into
masterfrom
lightcode/honest-comet-93f7cf84

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Jun 19, 2026

Copy link
Copy Markdown
Owner
  • Stop deduplicating overlapping streamed deltas; the per-event reducer and the batch coalescer now append chunks verbatim so text streams are strictly append-only.
  • Fixes corruption where a delta boundary landing on a repeated character (e.g. aws s + so login) was wrongly collapsed, dropping characters from the rendered output.
  • Remove the now-unused mergeStreamChunk suffix/prefix-overlap helper.
  • Update tests to assert repeated characters are preserved across chunk boundaries, covering both one-at-a-time and batch-coalesced delivery.

- replace mergeStreamChunk overlap merge with plain concatenation in
  reducer and batch coalescer to preserve repeated chars at boundaries
- remove now-unused mergeStreamChunk helper
- rework dedup test to assert repeated chars survive per-event and batch
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
lightcode-landing Skipped Skipped Jun 19, 2026 12:43am

@SDSLeon SDSLeon merged commit 00bedc1 into master Jun 19, 2026
6 checks passed
@SDSLeon SDSLeon deleted the lightcode/honest-comet-93f7cf84 branch June 19, 2026 01:05
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