Repository navigation
Commit ce40fb8
committed
fix(transport): gate the session id on a per-request protocol version
A request carrying `_meta.protocolVersion` replaces the negotiated version for
itself and everything after it, but the id was not reconsulted. A legacy session
that moved to 2026-07-28 that way kept echoing its Mcp-Session-Id, starting with
the very request that moved it.
Gate above the POST built from that request, so it is the first one to go without
the id rather than the last one to carry it. The cleanup record is built earlier
from the id the server sent, so the shutdown DELETE is unaffected.1 parent d36ce25 commit ce40fb8
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
| 99 | + | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
1597 | 1597 | | |
1598 | 1598 | | |
1599 | 1599 | | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
1600 | 1605 | | |
1601 | 1606 | | |
1602 | 1607 | | |
| |||
0 commit comments