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 06d1492
Browse filesBrowse the repository at this point in the historyBrowse files
Derive transport headers from a constructor protocol_version pin
streamablehttp_client() and StreamableHTTPTransport now take
protocol_version: str | None = None, seeding the existing
self.protocol_version field that _prepare_headers() already reads.
_body_derived_headers (which sniffed params._meta) is replaced by
_per_message_headers, gated on the pin and reading message.method
directly so requests and notifications are handled uniformly.
The _meta envelope is request-only per spec and stays the session's
responsibility; the transport no longer treats the body as the source
of truth for connection-level headers. The constructor pin also wins
over the InitializeResult snoop.
ClientSession: pinned sessions set cancel_on_abandon=False so the
dispatcher never emits notifications/cancelled (a stateless server
cannot correlate it); the envelope keys now overwrite caller-supplied
_meta values rather than setdefault.
For now the pin is passed to both streamablehttp_client and
ClientSession; the high-level Client will collapse this to one
argument.
Claude-Session: https://claude.ai/code/session_017S3aJaxEHeMvftp6whnHWK
0 commit comments