Skip to content

fix: reconnector guard, input validation, buffer TTL race#80

Merged
vreshch merged 1 commit intomasterfrom
fix/streaming-remaining
Mar 29, 2026
Merged

fix: reconnector guard, input validation, buffer TTL race#80
vreshch merged 1 commit intomasterfrom
fix/streaming-remaining

Conversation

@vreshch
Copy link
Copy Markdown
Contributor

@vreshch vreshch commented Mar 29, 2026

Summary

Fixes last 3 streaming bugs from the test plan.

  • B3: Buffer TTL extended when a client subscribes — prevents race between buffer expiry timer and replay delivery
  • B10: Reconnector start() is now a no-op if already running — prevents duplicate attempt chains on rapid disconnect/reconnect
  • B11: sendInput validates that text is a non-empty string before dispatching

Test plan

  • 326/326 unit tests pass
  • Build clean, lint clean, prettier clean

…TTL race

B3: Extend buffer TTL when client subscribes to prevent race between
    buffer expiry and replay delivery.
B10: Reconnector double-start guard — calling start() while already
     running is now a no-op.
B11: sendInput validates text is a non-empty string before dispatching.
@github-actions
Copy link
Copy Markdown
Contributor

🎉 PR Validation ✅ PASSED

Commit: bc8b9b19178b5ff82a6dbea957df92e5607e65b9
Branch: fix/streaming-remaining

Checks:

  • ✅ Dependencies installed
  • ✅ Type check passed
  • ✅ Linting passed
  • ✅ Format check passed
  • ✅ Tests + coverage passed
  • ✅ Build successful

Ready to merge!


🔗 View workflow run
⏰ Generated at: 2026-03-29T08:28:41.444Z

@vreshch vreshch merged commit e86ec4f into master Mar 29, 2026
1 check passed
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