Merge branch 'main' into patch-1

This commit is contained in:
Cliff Hall 2025-04-18 15:13:12 -04:00 • committed by GitHub
commit 88f962d463
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -343,7 +343,7 @@ export class StreamableHTTPServerTransport implements Transport {
if (isInitializationRequest) {
// If it's a server with session management and the session ID is already set we should reject the request
// to avoid re-initialization.
if (this._initialized) {
if (this._initialized && this.sessionId !== undefined) {
res.writeHead(400).end(JSON.stringify({
jsonrpc: "2.0",
error: {