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
{{ message }}
Repository navigation
Commit fe7567a
Browse filesBrowse the repository at this point in the historyBrowse files
Mark Pollack
committed
Validate JSON-RPC requests and params as JSON-RPC 2.0 says
A request whose method is not a string was answered -32601; one whose id is an object, or whose
jsonrpc is not "2.0", was executed. All three are now -32600 Invalid Request (sections 4 and 5.1),
answered with the request's id when it can be read. Over Streamable HTTP such a JSON object is
answered on the connection stream, and the HTTP client now answers an SSE event that is no
JSON-RPC message, as the stdio and WebSocket transports do. Params the method cannot read (a wrong
JSON type, a required field missing) are -32602 Invalid params instead of -32603, on the agent and
the client: the new AcpTransport.unmarshalParams checks them, and the default mappers no longer
coerce scalars. A notification whose handler fails is logged and skipped; on the agent it used to
end the inbound stream. A stray response without an id is logged at WARN, not ERROR.
The raw conformance expectations for these cases are removed; the unknown-session SSE stream
entry stays (the server keeps the provisional stream, see the routing commit).
0 commit comments