Skip to content

fix(local): warn when the event stream cannot be attached - #1343

Merged
MathurAditya724 merged 1 commit into
mainfrom
cursor/fix-local-sse-attach-warn-27d6
Aug 3, 2026
Merged

MathurAditya724 merged 1 commit into
mainfrom
cursor/fix-local-sse-attach-warn-27d6

Conversation

@MathurAditya724

Copy link
Copy Markdown
Member

consumeSSE() gave up silently when the very first connection attempt failed. /health can answer 200 while /stream does not — an unrelated service squatting on the port, or the server going away between the two requests — and in that case nothing was ever printed again.

That is worst in local run, which keeps the child process alive: the user saw 'Connected to existing server', then no events for the rest of the session with no explanation. Emit a warning before giving up, and log the 200-with-no-body case that was also returning silently.

Addresses the review comment on #1342.

consumeSSE() gave up silently when the very first connection attempt
failed. /health can answer 200 while /stream does not — an unrelated
service squatting on the port, or the server going away between the two
requests — and in that case nothing was ever printed again.

That is worst in `local run`, which keeps the child process alive: the
user saw 'Connected to existing server', then no events for the rest of
the session with no explanation. Emit a warning before giving up, and
log the 200-with-no-body case that was also returning silently.

Addresses the review comment on #1342.

Co-authored-by: Aditya Mathur <MathurAditya724@users.noreply.github.com>
@MathurAditya724
MathurAditya724 enabled auto-merge (squash) August 3, 2026 06:43
@github-actions

github-actions Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-03 06:53 UTC

@MathurAditya724
MathurAditya724 merged commit 8150aa8 into main Aug 3, 2026
29 checks passed
@MathurAditya724
MathurAditya724 deleted the cursor/fix-local-sse-attach-warn-27d6 branch August 3, 2026 06:52
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.

2 participants