teknium1
8cd4a96686
fix(browser): race condition in session creation can orphan cloud sessions
...
Two concurrent threads (e.g. parallel subagents) could both pass the
'task_id in _active_sessions' check, both create cloud sessions via
network calls, and then one would overwrite the other — leaking the
first cloud session.
Add double-check after the lock is re-acquired: if another thread
already created a session while we were doing the network call, use
the existing one instead of orphaning it.
2026-03-17 04:09:16 -07:00
..
2026-03-17 00:16:34 -07:00
2026-03-17 04:02:02 -07:00
2026-03-17 02:33:12 -07:00
2026-03-14 12:21:50 -07:00
2026-03-17 02:22:12 -07:00
2026-03-17 04:09:16 -07:00
2026-03-16 04:43:37 -07:00
2026-03-15 20:21:21 -07:00
2026-03-16 23:13:26 -07:00
2026-03-17 03:14:53 -07:00
2026-02-21 03:53:24 -08:00
2026-03-17 02:53:33 -07:00
2026-03-17 02:57:02 -07:00
2026-03-17 01:50:59 -07:00
2026-03-17 03:00:17 -07:00
2026-03-15 20:21:21 -07:00
2026-03-16 00:23:47 -07:00
2026-03-15 20:21:21 -07:00
2026-02-23 02:11:33 -08:00
2026-03-17 03:48:44 -07:00
2026-03-16 06:52:32 -07:00
2026-03-15 20:21:21 -07:00
2026-03-17 02:33:12 -07:00
2026-03-11 20:02:36 -07:00
2026-03-14 03:47:13 -07:00
2026-03-17 03:52:15 -07:00
2026-03-15 20:21:21 -07:00
2026-03-15 20:21:21 -07:00
2026-03-17 03:56:06 -07:00
2026-03-16 05:22:00 -07:00
2026-03-17 01:53:58 -07:00
2026-03-14 11:27:02 -07:00
2026-03-17 02:13:34 -07:00
2026-03-08 23:53:57 -07:00
2026-03-17 01:50:59 -07:00
2026-03-17 03:52:15 -07:00
2026-03-16 23:39:41 -07:00
2026-03-15 20:21:21 -07:00
2026-03-15 21:51:40 -07:00
2026-03-17 02:33:12 -07:00
2026-03-15 20:21:21 -07:00
2026-03-14 22:09:59 -07:00
2026-03-17 04:02:02 -07:00
2026-03-17 03:11:26 -07:00