Commit 945bb02
authored
fix(local-mcp): don't drop relay requests fired before session assignment
broadcastEvent silently returned when this.session was still null, but the
MCP relay server starts listening (and the client subprocess can hit it with
its initialize handshake) before newSession() resolves and assigns
this.session. The earliest relay request for every configured server -
almost always the only initialize attempt an MCP client makes - was lost at
the source instead of reaching the desktop.1 parent a19be3d commit 945bb02
2 files changed
Lines changed: 53 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1240 | 1240 | | |
1241 | 1241 | | |
1242 | 1242 | | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1243 | 1293 | | |
1244 | 1294 | | |
1245 | 1295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4263 | 4263 | | |
4264 | 4264 | | |
4265 | 4265 | | |
4266 | | - | |
4267 | | - | |
4268 | 4266 | | |
4269 | 4267 | | |
4270 | 4268 | | |
4271 | 4269 | | |
4272 | 4270 | | |
4273 | | - | |
| 4271 | + | |
| 4272 | + | |
| 4273 | + | |
4274 | 4274 | | |
4275 | 4275 | | |
4276 | 4276 | | |
| |||
0 commit comments