Skip to content

Conversation

BYK
Copy link
Contributor

@BYK BYK commented Sep 18, 2025

SSEHonoTransport that was used for the stdio proxy does not relay the underlying stream's close event so its own onclose handler never gets called. This then causes the underlying stdio process to be left running even when it was actually disconnected on the other end.

This PR fixes the issue by manually triggering the onclose handler when the stream closes. This is a workaround and should be removed when the upstream code referenced in the comment is fixed.

SSEHonoTransport that was used for the stdio proxy does not relay the underlying stream's close event so its own `onclose` handler never gets called. This then causes the underlying stdio process to be left running even when it was actually disconnected on the other end.

This PR fixes the issue by manually triggering the `onclose` handler when the stream closes. This is a workaround and should be removed when the upstream code referenced in the comment is fixed.
@MathurAditya724 MathurAditya724 merged commit 740b6cd into muppet-dev:main Sep 23, 2025
@BYK BYK deleted the byk/fix/close-stdio-on-disconnect branch September 23, 2025 10:58
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