Yuzhu Shen
1ab8c6ef28
Fix thread unloading after disconnect during MCP startup ( #50380 )
...
## Why
If required MCP startup outlasts the requesting connection's cleanup, the newly created thread can remain loaded without subscribers because its listener is never started.
## What changed
Start the thread listener even when the requesting connection has already closed, allowing normal idle unloading to clean up the thread while preserving the `ConnectionClosed` result.
## Testing
Add a regression test that disconnects during blocked required MCP startup, then releases startup and verifies a `thread/closed` notification, an empty `thread/loaded/list`, and MCP process exit on Unix.
GitOrigin-RevId: 4ad912a82177266316042d806f5faa1713a48fa4
2026-10-02 17:40:09 +00:00
..
2026-09-26 23:17:41 +00:00
2026-09-21 21:22:01 +00:00
2026-10-02 17:40:09 +00:00
2026-09-14 22:31:32 +00:00
2026-09-14 22:31:32 +00:00
2026-07-23 01:00:35 +00:00
2026-07-22 14:16:51 +00:00
2026-09-23 00:49:19 +00:00
2026-09-29 13:58:09 +00:00
2026-08-21 19:04:32 +00:00
2026-08-24 21:39:48 +00:00
2026-09-27 22:05:19 +00:00
2026-08-25 20:37:15 +00:00
2026-08-25 20:37:15 +00:00
2026-09-08 10:18:59 +00:00
2026-09-24 09:25:19 +00:00
2026-08-10 11:22:55 +00:00
2026-09-23 00:47:07 +00:00
2026-09-09 17:45:17 +00:00
2026-09-29 13:58:09 +00:00
2026-09-10 21:41:39 +00:00
2026-09-29 13:58:09 +00:00
2026-09-09 23:59:14 +00:00
2026-06-27 16:42:03 -07:00
2026-09-16 00:54:58 +00:00
2026-07-18 23:22:13 +00:00
2026-08-28 19:12:34 +00:00
2026-09-01 00:50:11 +00:00
2026-09-08 23:45:10 +00:00
2026-09-21 17:28:14 +00:00
2026-08-21 19:04:32 +00:00
2026-09-22 06:36:09 +00:00
2026-09-30 01:44:14 +00:00
2026-09-30 01:44:14 +00:00
2026-09-24 17:04:50 +00:00
2026-09-30 18:29:46 +00:00
2026-09-24 17:04:50 +00:00
2026-09-24 17:04:50 +00:00
2026-08-25 20:37:15 +00:00
2026-09-23 04:25:28 +00:00
2026-09-29 13:58:09 +00:00
2026-09-22 06:36:09 +00:00
2026-10-02 17:40:09 +00:00
2026-09-22 06:36:09 +00:00
2026-10-02 17:40:09 +00:00
2026-09-21 01:19:40 +00:00
2026-09-21 01:19:40 +00:00
2026-09-21 01:19:40 +00:00
2026-09-21 01:19:40 +00:00
2026-09-30 04:48:50 +00:00
2026-08-07 00:28:32 +00:00
2026-09-24 17:04:50 +00:00
2026-09-01 22:37:26 +00:00
2026-09-29 13:58:09 +00:00
2026-09-09 01:03:42 +00:00
2026-08-11 10:43:11 +00:00
2026-09-28 17:00:25 +00:00
2026-09-30 11:58:03 +00:00
2026-09-28 21:33:00 +00:00
2026-08-28 01:14:02 +00:00
2026-09-23 04:25:28 +00:00
2026-09-09 01:03:42 +00:00
2026-09-09 01:03:42 +00:00
2026-09-01 00:30:55 +00:00
2026-09-23 00:47:07 +00:00
2026-09-10 18:24:13 +00:00
2026-09-23 00:47:07 +00:00
2026-09-21 07:01:52 +00:00
2026-09-07 18:43:20 +00:00
2026-09-07 18:43:20 +00:00
2026-09-08 05:57:24 +00:00
2026-09-08 21:48:53 +00:00
2026-09-08 21:48:53 +00:00
2026-09-21 07:01:52 +00:00
2026-09-21 07:01:52 +00:00
2026-09-07 04:33:22 +00:00
2026-09-07 04:33:22 +00:00
2026-09-11 17:36:50 +00:00
2026-09-11 17:36:50 +00:00
2026-09-11 17:36:50 +00:00
2026-09-11 17:36:50 +00:00