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
feat: transparent session migration on server restart
When a StreamableHTTP server restarts, client sessions are lost and the
server returns 404 'Session not found' for any request using an old
session ID. Clients (OpenCode, etc.) do not automatically reinitialize,
leaving the connection permanently broken.
This change:
1. Detects unknown/expired session IDs and creates a new transport
using the client's original session ID, so session ID header
validation passes.
2. Starts the new transport in stateless mode (pre-initialized) so
the client's first non-initialize request is accepted immediately
without requiring the full MCP initialization handshake.
Closes#1121
0 commit comments