Ryanisgood and bincxz
c58b829972
feat: add External MCP quick toggle ( #2355 )
...
* feat: add external MCP top bar toggle
* fix: polish external MCP toggle accessibility
* fix: harden External MCP top-bar toggle ownership and status sync
Hide the quick toggle in peer session windows, poll runtime status at the same cadence as settings, and drop an unrelated zh-CN copy change from this branch.
* fix: prevent External MCP top-bar poll from clearing startup state
Wait for main-window startup reconcile before runtime status can turn the shared switch off, and keep peer windows from owning the main-process enable path.
* fix: await External MCP startup enable before top-bar status polling
Mark startup ready only after the async enable/disable reconcile settles so persistent mode is not cleared by a still-disabled runtime.
* fix: scope External MCP startup gate and preserve enable intent
Only main App shells wait on startup reconcile, keep waiters single-flight, re-read storage after await gaps, and avoid clearing always-on preference on start errors.
* fix: ignore stale External MCP startup enable after concurrent toggles
Bump an enable generation on top-bar changes and skip outdated startup apply work so boot reconcile cannot overwrite a newer user toggle.
* test: fix External MCP toggle lint errors in unit coverage
Remove a duplicate import and use globalThis.localStorage in tests so eslint no-restricted-globals passes.
---------
Co-authored-by: bincxz <16399091+binaricat@users.noreply.github.com >
2026-07-21 21:45:29 +08:00
..
2026-07-21 11:41:46 +08:00
2026-06-10 01:10:33 +08:00
2026-06-28 02:17:06 +08:00
2026-07-02 01:00:32 +08:00
2026-07-03 10:47:59 +08:00
2026-06-10 23:22:19 +08:00
2026-06-10 23:22:19 +08:00
2026-05-28 15:12:19 +08:00
2026-06-20 11:27:00 +08:00
2026-06-20 11:27:00 +08:00
2026-05-27 00:03:08 +08:00
2026-07-17 14:54:35 +08:00
2026-07-17 14:54:35 +08:00
2026-07-10 17:50:42 +08:00
2026-07-10 17:50:42 +08:00
2026-06-23 01:49:57 +08:00
2026-06-23 01:49:57 +08:00
2026-05-22 22:26:05 +08:00
2026-05-22 22:26:05 +08:00
2026-07-03 10:47:59 +08:00
2026-07-21 17:32:14 +08:00
2026-04-22 19:03:38 +08:00
2026-05-01 16:31:58 +08:00
2026-05-01 16:31:58 +08:00
2026-05-01 16:31:58 +08:00
2026-06-09 03:35:03 +08:00
2026-07-17 11:57:23 +08:00
2026-07-17 11:57:23 +08:00
2026-06-09 03:35:03 +08:00
2026-06-09 03:35:03 +08:00
2026-06-10 11:04:36 +08:00
2026-05-28 15:12:19 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-21 00:04:30 +08:00
2026-07-21 00:04:30 +08:00
2026-07-20 22:40:48 +08:00
2026-07-20 22:40:48 +08:00
2026-07-20 14:54:27 +08:00
2026-07-20 14:54:27 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-06-03 10:27:50 +08:00
2026-06-03 10:27:50 +08:00
2026-05-26 02:42:41 +08:00
2026-05-26 02:42:41 +08:00
2026-05-26 02:42:41 +08:00
2026-05-26 02:42:41 +08:00
2026-04-28 21:21:46 +08:00
2026-04-28 21:21:46 +08:00
2026-06-11 14:48:52 +08:00
2026-06-11 14:48:52 +08:00
2026-06-29 02:39:08 +08:00
2026-06-30 17:01:27 +08:00
2026-06-28 23:48:12 +08:00
2026-03-26 21:52:10 +08:00
2026-06-09 03:35:03 +08:00
2026-06-13 08:58:04 +08:00
2026-07-09 11:16:41 +08:00
2026-07-15 14:05:08 +08:00
2026-07-15 13:23:16 +08:00
2026-06-19 16:08:18 +08:00
2026-06-17 18:43:50 +08:00
2026-06-23 01:49:57 +08:00
2026-06-23 01:49:57 +08:00
2026-06-17 18:43:42 +08:00
2026-06-17 18:43:42 +08:00
2026-07-21 10:59:34 +08:00
2026-07-21 10:59:34 +08:00
2026-07-10 17:50:42 +08:00
2026-06-25 13:32:12 +08:00
2026-07-14 13:24:15 +08:00
2026-07-16 01:48:22 +08:00
2026-06-12 14:00:16 +08:00
2026-06-12 14:00:16 +08:00
2026-06-28 03:28:50 +08:00
2026-06-28 23:48:12 +08:00
2026-05-31 18:01:43 +08:00
2026-06-11 14:48:52 +08:00
2026-07-09 16:00:21 +08:00
2026-07-04 19:37:11 +08:00
2026-07-04 19:37:11 +08:00
2026-07-06 22:56:32 +08:00
2026-07-06 22:56:32 +08:00
2026-06-14 01:30:44 +08:00
2026-06-24 23:52:03 +08:00
2026-06-24 23:52:03 +08:00
2026-06-10 01:10:33 +08:00
2026-06-10 01:10:33 +08:00
2026-06-10 01:10:33 +08:00
2026-06-24 23:36:32 +08:00
2026-06-24 23:36:32 +08:00
2026-07-15 22:28:24 +08:00
2026-07-15 22:28:24 +08:00
2026-06-06 18:59:48 +08:00
2026-06-06 18:59:48 +08:00
2026-07-14 17:11:03 +08:00
2026-05-01 16:31:58 +08:00
2026-05-01 16:31:58 +08:00
2026-06-12 01:21:28 +08:00
2026-06-12 01:21:28 +08:00
2026-07-03 10:47:59 +08:00
2026-06-12 17:46:32 +08:00
2026-06-28 03:28:50 +08:00
2026-06-28 03:28:50 +08:00
2026-07-14 12:06:41 +08:00
2026-06-26 00:08:39 +08:00
2026-06-27 17:25:18 +08:00
2026-07-17 16:32:00 +08:00
2026-07-12 17:49:57 +08:00
2026-07-17 09:41:28 +08:00
2026-07-17 09:41:28 +08:00
2026-02-07 13:44:19 +08:00
2026-06-01 19:29:53 +08:00
2026-07-17 09:41:28 +08:00
2026-06-10 15:18:37 +08:00
2026-06-10 15:18:37 +08:00
2026-07-09 15:39:17 +08:00
2026-07-21 21:45:29 +08:00
2026-07-21 21:45:29 +08:00
2026-06-07 19:05:33 +08:00
2026-06-14 01:30:44 +08:00
2026-07-12 15:53:32 +08:00
2025-12-13 01:38:44 +08:00
2026-04-15 03:09:55 +08:00
2026-07-07 23:29:14 +08:00
2026-07-07 23:29:14 +08:00
2026-07-15 12:15:44 +08:00
2026-07-15 12:52:07 +08:00
2026-06-28 03:28:50 +08:00
2026-06-28 03:28:50 +08:00
2026-07-01 02:49:24 +08:00
2026-07-01 02:49:24 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-07-21 10:44:36 +08:00
2026-07-21 10:44:36 +08:00
2026-07-21 00:04:30 +08:00
2026-07-21 00:04:30 +08:00
2026-07-20 14:54:27 +08:00
2026-06-25 15:04:00 +08:00
2026-07-21 16:06:13 +08:00
2026-07-21 16:06:13 +08:00
2026-07-17 16:59:17 +08:00
2026-07-17 17:55:42 +08:00
2026-06-10 23:19:31 +08:00
2026-06-28 23:48:12 +08:00
2026-06-28 23:48:12 +08:00
2026-07-19 08:54:20 +08:00
2026-07-21 10:50:21 +08:00
2026-07-02 01:13:38 +08:00
2026-07-14 13:24:15 +08:00
2026-06-22 14:08:53 +08:00
2026-05-18 11:31:50 +08:00
2026-03-28 19:44:37 +08:00
2026-07-15 00:41:40 +08:00
2026-03-31 23:55:45 +08:00
2026-06-22 18:23:58 +08:00
2026-06-29 10:49:19 +08:00
2026-06-29 10:49:19 +08:00
2026-01-28 11:13:17 +08:00
2026-06-11 04:19:21 +08:00
2026-07-16 13:43:01 +08:00
2026-06-11 04:19:21 +08:00
2026-07-03 10:47:59 +08:00
2026-07-14 17:11:03 +08:00
2026-07-21 16:30:50 +08:00
2026-06-09 03:35:03 +08:00
2026-06-18 11:50:19 +08:00
2026-07-15 18:05:11 +08:00
2026-07-21 17:32:14 +08:00
2026-06-28 23:48:12 +08:00
2026-06-11 03:11:39 +08:00
2026-07-21 16:51:03 +08:00
2026-07-21 16:51:03 +08:00
2026-06-11 16:05:17 +08:00
2026-07-13 00:00:52 +08:00
2026-07-13 00:00:52 +08:00
2026-06-28 23:48:12 +08:00
2026-07-20 12:39:29 +08:00
2026-07-20 12:39:29 +08:00
2026-06-26 18:01:57 +08:00
2026-07-09 03:19:19 +08:00
2026-07-09 03:19:19 +08:00
2026-07-04 17:38:33 +08:00
2026-07-04 17:38:33 +08:00