Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

provider-http: SseIdTracker keeps an undispatched id across reconnect

Closed Beginner friendly
#106 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

A pull request for this has already been merged.

  • #188 by @dezlitz — merged

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Start with packages/provider-http/src/sse-id.ts and inspect SseIdTracker.resetStream() and the existing tests for stream ID handling. Reproduce the described disconnect after id: pending\n but before the blank line, then add a test covering that interruption and reconnect. Done when the pending ID is not promoted by the next stream's first blank line, while the committed ID remains intact.

Written by the indexing model from the issue text.

Description

review-finding

From the GPT review of #89 (head 9002547), P2. packages/provider-http/src/sse-id.ts resetStream() keeps buffer. Steps: receive id: committed\n\n, then id: pending\n, then the stream drops before the blank line. On the next stream the first blank line (e.g. a heartbeat) promotes 'pending' to lastEventId. Fix: in resetStream() set buffer = lastEventId. Add a test that interrupts the stream between the id line and the frame terminator.

Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
10h 39m
Merged PRs (30d)
38

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hyperdrive-technology/holodeck

All issues in hyperdrive-technology/holodeck

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.