Teknium
39bf984765
fix(desktop): sync connection atoms and share the switch mutex for agent activation
...
ensureGatewayForAgent (the SDK ensureAgent door) skipped the two invariants
the profile path provides:
- $connection / $activeGatewayProfile were only updated when a socket was
freshly dialed (setConnection inside openSecondary), so activating an
ALREADY-OPEN registry agent left both describing the previous backend —
/api/fs, /api/media and image.attach routed to the wrong machine (same
class as #46651 ) and newSessionInProfile targeted the stale profile.
- Activations bypassed the gatewaySwitch mutex, so a rapid agent/profile
interleave could complete out of order with the earlier setActive()
landing last.
Add profile.ts ensureGatewayAgent: the (connectionId, profile) analogue of
ensureGatewayProfile that shares the same gatewaySwitch mutex, moves
$activeGatewayProfile on every activation, and resyncs $connection from
getConnectionFor (best-effort, like the profile path). The SDK ensureAgent
now routes through it; local/null connectionId falls through to the
profile path unchanged.
2026-08-16 02:44:48 -07:00
..
2026-08-15 09:33:47 +00:00
2026-07-27 15:47:57 -05:00
2026-07-27 15:47:57 -05:00
2026-05-31 17:46:56 -05:00
2026-07-28 21:36:23 +00:00
2026-07-28 21:36:23 +00:00
2026-08-10 01:13:08 -07:00
2026-07-20 18:33:14 -05:00
2026-07-16 19:57:39 +00:00
2026-07-15 21:40:56 +00:00
2026-08-05 16:22:58 +00:00
2026-07-27 17:55:27 -05:00
2026-07-14 16:59:57 -04:00
2026-06-25 19:57:45 -05:00
2026-06-25 19:57:45 -05:00
2026-07-22 18:09:08 -05:00
2026-07-23 03:32:32 +00:00
2026-07-20 11:44:41 -04:00
2026-08-14 20:24:32 -07:00
2026-08-14 20:24:32 -07:00
2026-08-03 13:39:33 +05:30
2026-08-07 13:06:35 -05:00
2026-07-30 00:06:52 -05:00
2026-07-27 17:55:46 -05:00
2026-07-27 17:55:46 -05:00
2026-06-14 00:21:40 -05:00
2026-07-28 19:19:52 -05:00
2026-06-26 01:04:33 -05:00
2026-06-26 01:04:33 -05:00
2026-08-15 01:03:57 -07:00
2026-07-28 02:50:02 -05:00
2026-08-15 01:03:57 -07:00
2026-07-30 15:08:31 -04:00
2026-08-12 22:48:00 -05:00
2026-06-25 16:40:27 -05:00
2026-08-08 16:26:48 -05:00
2026-08-13 18:31:29 -05:00
2026-08-13 18:31:29 -05:00
2026-08-15 01:03:57 -07:00
2026-08-15 01:03:57 -07:00
2026-08-13 08:15:48 +00:00
2026-08-13 08:15:48 +00:00
2026-08-13 08:15:48 +00:00
2026-08-13 08:15:48 +00:00
2026-08-15 06:22:02 +00:00
2026-08-14 20:46:50 -07:00
2026-07-28 09:10:21 -04:00
2026-07-28 09:10:21 -04:00
2026-08-15 01:04:06 -07:00
2026-08-15 01:04:19 -07:00
2026-06-26 13:35:01 -05:00
2026-06-25 16:40:27 -05:00
2026-08-15 09:33:47 +00:00
2026-08-16 02:44:48 -07:00
2026-08-15 03:31:07 +00:00
2026-07-26 19:52:57 -05:00
2026-08-15 01:21:40 -07:00
2026-08-16 02:44:48 -07:00
2026-07-26 17:47:38 -07:00
2026-07-26 17:47:38 -07:00
2026-05-31 17:46:56 -05:00
2026-08-15 16:21:56 -07:00
2026-08-09 09:10:59 +00:00
2026-08-09 09:10:59 +00:00
2026-07-20 13:57:41 -05:00
2026-07-20 13:57:41 -05:00
2026-07-16 18:26:21 -04:00
2026-07-30 07:09:40 -05:00
2026-08-06 21:12:07 -05:00
2026-08-12 22:24:37 -05:00
2026-08-13 08:15:48 +00:00
2026-07-29 18:50:09 -05:00
2026-08-16 02:25:14 -07:00
2026-08-16 02:36:54 -07:00
2026-08-16 09:43:56 +00:00
2026-08-13 01:06:51 -05:00
2026-07-19 19:31:34 -04:00
2026-07-20 05:11:36 +00:00
2026-07-28 03:52:33 -05:00
2026-07-28 18:30:19 +00:00
2026-08-04 11:28:20 -06:00
2026-08-05 07:06:05 +00:00
2026-08-01 00:27:17 -05:00
2026-08-12 16:38:35 -07:00
2026-07-27 15:47:45 -05:00
2026-08-13 08:15:48 +00:00
2026-08-16 00:06:07 -07:00
2026-07-22 12:13:01 -05:00
2026-07-22 12:13:01 -05:00
2026-07-13 17:22:17 -04:00
2026-07-13 17:57:54 -04:00
2026-08-04 07:10:23 +00:00
2026-08-04 07:10:23 +00:00
2026-07-03 13:48:44 -05:00
2026-07-15 21:40:56 +00:00
2026-08-04 07:10:23 +00:00
2026-08-03 13:41:12 +05:30
2026-07-31 00:38:11 -05:00
2026-06-25 19:50:25 -05:00
2026-08-05 10:26:48 -06:00
2026-06-22 19:22:11 -05:00
2026-06-22 19:22:11 -05:00
2026-08-05 16:22:58 +00:00
2026-08-05 16:51:56 +00:00
2026-08-16 02:44:48 -07:00
2026-08-04 12:07:29 -06:00
2026-08-05 07:06:05 +00:00
2026-08-16 02:44:48 -07:00
2026-08-16 02:44:48 -07:00
2026-08-13 02:18:53 -05:00
2026-08-10 03:13:08 -05:00
2026-08-14 20:24:32 -07:00
2026-08-15 03:42:49 +00:00
2026-07-20 10:47:15 +00:00
2026-08-16 01:55:00 -07:00
2026-08-09 06:21:04 -05:00
2026-07-26 17:48:19 -07:00
2026-07-26 17:48:19 -07:00
2026-07-30 00:08:28 -05:00
2026-07-30 00:08:28 -05:00
2026-07-30 00:08:28 -05:00
2026-07-30 07:36:23 +00:00
2026-08-15 07:46:57 +00:00
2026-08-09 06:34:04 -05:00
2026-08-09 06:21:04 -05:00
2026-07-13 17:57:54 -04:00
2026-07-19 16:05:16 -05:00
2026-07-23 03:32:32 +00:00
2026-08-15 01:21:40 -07:00
2026-08-15 01:21:40 -07:00
2026-08-15 00:34:57 -07:00
2026-08-15 00:34:57 -07:00
2026-08-10 03:13:08 -05:00
2026-08-06 21:11:38 -05:00
2026-08-14 20:23:07 -07:00
2026-08-14 20:23:07 -07:00
2026-08-16 01:55:00 -07:00
2026-06-09 20:12:46 -05:00
2026-06-26 01:04:33 -05:00
2026-06-15 20:59:57 -05:00
2026-08-15 01:21:40 -07:00
2026-08-15 01:21:40 -07:00
2026-08-15 01:21:40 -07:00
2026-08-15 01:21:40 -07:00
2026-08-15 08:27:29 +00:00
2026-08-08 16:26:48 -05:00
2026-08-15 01:21:40 -07:00
2026-08-15 01:21:40 -07:00
2026-08-09 06:21:15 -05:00
2026-07-15 03:30:25 -04:00
2026-08-10 03:13:08 -05:00
2026-08-10 03:13:08 -05:00
2026-07-03 13:48:44 -05:00
2026-08-13 14:29:18 -05:00
2026-08-15 03:31:07 +00:00
2026-08-14 20:23:57 -07:00
2026-06-19 10:02:54 -05:00
2026-06-13 01:57:30 -05:00
2026-07-02 21:22:45 -05:00
2026-08-12 22:24:37 -05:00
2026-07-18 19:15:57 -04:00
2026-07-18 19:15:57 -04:00
2026-06-12 17:34:48 -05:00
2026-07-27 18:42:46 -05:00
2026-07-29 13:30:06 -05:00
2026-08-16 02:24:25 -07:00
2026-06-12 12:02:38 -05:00
2026-08-16 02:03:22 -07:00
2026-08-16 02:03:22 -07:00
2026-05-31 17:46:56 -05:00
2026-07-29 08:24:00 -07:00
2026-07-29 08:24:00 -07:00
2026-08-05 10:25:57 -06:00
2026-08-05 16:51:56 +00:00
2026-07-20 18:02:48 -05:00
2026-08-14 16:27:01 -05:00
2026-08-08 16:26:48 -05:00
2026-07-19 21:56:57 -05:00
2026-07-28 04:00:55 -05:00