| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thanks for the PR. This has since landed via #3047. I'm closing this out as part of a backlog cleanup now that v2 is out. Feel free to reopen if this is still relevant. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Fixes a streamable HTTP client hang when a POST request receives an SSE response that closes before sending a JSON-RPC response.
This targets #1577. It overlaps with the older #1578, but keeps the current-main patch narrow: preserve the existing reconnect behavior when a resumable event id is available, and only resolve the pending request with the existing SDK CONNECTION_CLOSED error when there is no response and no resumable event to follow.
Root Cause
_handle_sse_response() consumed the POST SSE stream and returned silently if the stream ended before a response and no Last-Event-ID had been observed. Because no JSONRPCError or transport exception was written to the read stream, the JSON-RPC dispatcher kept the corresponding call_tool() waiter pending forever.
Changes
Validation