You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
Parker Fawcett
authored and
Parker Fawcett
committed
Answer envelope-invalid requests with errors correlated to the original id
A request that is valid JSON but not a valid JSON-RPC envelope was
answered (or dropped) with an error carrying no request id, so clients
could not correlate the failure:
- streamable HTTP: the 400 validation-error body now echoes the
original top-level id and uses INVALID_REQUEST (-32600), matching
the JSON-RPC 2.0 meaning of an invalid Request object.
- the 2026-07-28 single-exchange entry: same id echo on its
malformed-envelope rejection.
- stdio: a line that fails to decode now surfaces as an
UnparseableMessageError carrying the raw payload, and the session's
dispatcher answers it with INVALID_REQUEST naming the recovered id
instead of dropping it silently.
Fixes#2848
0 commit comments