kshitijk4poor
b47abc36f9
fix(dashboard): standalone dashboard starts MCP discovery on first /api/ws client, not at boot
...
A plain `hermes dashboard` (non-Desktop) called start_background_mcp_discovery eagerly in
_dashboard_prepare_runtime, spawning every configured stdio MCP server with zero clients — the
idle-process disk-write source reported in #58733 (mcp-stderr.log churn on NAS/ZFS). The /api/ws
_make_agent path only joins an in-flight discovery or fires an already-armed deferred start; it
never starts one itself, so simply deleting the eager call (#60602 ) would leave MCP servers
unconnected forever.
Reuse the Desktop `serve` deferred shape: defer_background_mcp_discovery(delay=None) arms the
start without a clock, the first /api/ws accept fires it (start_deferred_mcp_discovery_now, now
public), and wait_for_mcp_discovery at agent build still pulls it forward and joins, so servers
connect before the first turn. Desktop non-headless keeps the eager start; Desktop headless keeps
the 1 s post-bind timer.
Fixes #58733 (MCP half), #60572 .
2026-09-20 18:16:47 +05:30
..
2026-09-20 15:16:35 +05:30
2026-09-19 09:38:01 -07:00
2026-09-19 09:33:05 -07:00
2026-09-19 12:11:59 -07:00
2026-09-19 09:40:56 -07:00
2026-09-19 00:59:44 -07:00
2026-09-19 10:29:37 -07:00
2026-09-18 10:17:59 -07:00
2026-09-19 09:23:22 -07:00
2026-09-19 09:31:28 -07:00
2026-09-19 03:43:58 +05:30
2026-09-19 01:43:15 -07:00
2026-09-18 10:24:15 -07:00
2026-09-19 09:43:20 -07:00
2026-09-19 03:15:10 -07:00
2026-09-19 09:40:23 -07:00
2026-09-18 19:57:08 -07:00
2026-09-19 10:22:33 -07:00
2026-09-19 09:30:56 -07:00
2026-09-19 09:30:56 -07:00
2026-09-19 23:41:10 -07:00
2026-09-18 12:44:32 -07:00
2026-09-20 00:08:36 -07:00
2026-09-19 16:28:57 +05:30
2026-09-18 12:46:54 -07:00
2026-09-18 12:46:54 -07:00
2026-09-20 15:17:49 +05:30
2026-09-19 10:26:08 -07:00
2026-09-19 02:38:49 -07:00
2026-09-18 15:12:27 -07:00
2026-09-20 16:41:21 +05:30
2026-09-18 10:38:08 -07:00
2026-09-19 09:29:18 -07:00
2026-09-20 00:19:04 +05:30
2026-09-19 12:30:32 -07:00
2026-09-19 02:59:51 -07:00
2026-09-18 12:49:13 -07:00
2026-09-19 00:43:49 +05:30
2026-09-20 16:28:59 +05:30
2026-09-19 02:02:14 -07:00
2026-09-19 02:02:14 -07:00
2026-09-19 02:42:26 -07:00
2026-09-18 10:15:11 -07:00
2026-09-19 10:05:26 -07:00
2026-09-19 00:10:41 +05:30
2026-09-18 20:34:16 -07:00
2026-09-18 10:21:42 -07:00
2026-09-18 10:04:23 -07:00
2026-09-18 22:36:24 -07:00
2026-09-18 11:03:57 -07:00
2026-09-18 12:48:16 -07:00
2026-09-18 10:10:05 -07:00
2026-09-20 15:17:14 +05:30
2026-09-19 09:53:48 -07:00
2026-09-19 02:44:02 -07:00
2026-09-20 00:22:24 -07:00
2026-09-19 23:46:42 -07:00
2026-09-19 09:34:40 -07:00
2026-09-18 11:01:52 -07:00
2026-09-19 22:18:25 +05:30
2026-09-19 09:32:32 -07:00
2026-09-19 10:22:01 -07:00
2026-09-20 14:02:17 +05:30
2026-09-19 20:55:20 -07:00
2026-09-19 09:24:25 -07:00
2026-09-18 11:01:52 -07:00
2026-09-19 09:42:18 -07:00
2026-09-19 01:16:39 -07:00
2026-09-18 11:01:52 -07:00
2026-09-19 11:58:06 -07:00
2026-09-19 20:54:06 -07:00
2026-09-19 21:11:30 -07:00
2026-09-19 14:30:36 -07:00
2026-09-19 23:58:35 -07:00
2026-09-19 01:43:14 +05:30
2026-09-18 10:18:40 -07:00
2026-09-19 20:45:06 -07:00
2026-09-18 10:29:13 -07:00
2026-09-19 09:25:29 -07:00
2026-09-19 23:42:20 -07:00
2026-09-18 12:52:36 -07:00
2026-09-19 00:45:43 -07:00
2026-09-19 20:44:24 -07:00
2026-09-19 03:43:03 +05:30
2026-09-20 14:02:17 +05:30
2026-09-19 00:24:50 +05:30
2026-09-20 18:16:47 +05:30
2026-09-20 00:22:24 -07:00
2026-09-18 10:38:41 -07:00
2026-09-20 00:11:37 -07:00
2026-09-18 22:36:41 -07:00
2026-09-19 23:51:25 -07:00
2026-09-20 12:17:52 +05:30
2026-09-20 15:16:35 +05:30
2026-09-19 09:57:21 -07:00
2026-09-18 12:51:22 -07:00
2026-09-19 01:44:53 +05:30
2026-09-18 10:15:11 -07:00
2026-09-20 15:16:06 +05:30
2026-09-19 23:46:08 -07:00
2026-09-19 09:42:18 -07:00
2026-09-20 00:13:01 -07:00
2026-09-19 02:33:41 -07:00
2026-09-19 23:52:01 -07:00
2026-09-18 12:44:04 -07:00
2026-09-20 00:03:06 -07:00
2026-09-19 23:52:01 -07:00
2026-09-18 12:47:23 -07:00
2026-09-19 23:52:01 -07:00
2026-09-19 02:01:36 -07:00
2026-09-19 02:01:36 -07:00
2026-09-19 02:02:14 -07:00
2026-09-19 02:33:41 -07:00
2026-09-19 02:33:41 -07:00
2026-09-19 10:31:14 -07:00
2026-09-19 09:42:49 -07:00
2026-09-19 02:39:51 -07:00
2026-09-18 10:32:15 -07:00
2026-09-18 10:18:40 -07:00
2026-09-19 10:04:52 -07:00
2026-09-18 12:46:54 -07:00
2026-09-18 10:18:40 -07:00
2026-09-19 10:56:19 -07:00
2026-09-20 15:15:36 +05:30
2026-09-19 03:35:57 -07:00
2026-09-19 10:54:40 -07:00
2026-09-20 16:41:21 +05:30