finn763
406ed30aa7
fix(dashboard): a /chat tab's attach token is per tab, and one token maps to one PTY
...
Two tabs on the dashboard /chat collapsed into one session: ChatPage kept its ?attach= token in localStorage, which every tab on the origin shares, and the PTY registry maps one token to exactly one PTY — so the second tab closed the first one with 4409 and both showed one conversation/model.
The token now lives per tab in sessionStorage and is claimed with a Web Lock, so a second tab (including a Chrome "Duplicate tab", which clones sessionStorage) mints its own instead of sharing one; a reload finds its own token free again and still reattaches to the living PTY.
PtySessionRegistry.attach_or_spawn also spanned awaits, so two connections racing one token both forked a PTY: the token then mapped to whichever registered last while the other tab's live session fell out of the registry (never reaped, invisible to close_all), and a reattach landed on the other tab's terminal. The get-or-spawn decision is serialized now.
Issue #115304 .
2026-09-20 12:51:30 -07:00
..
2026-09-20 15:16:35 +05:30
2026-09-20 10:06:50 -07:00
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-20 10:18:48 -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-20 09:20:51 -07:00
2026-09-19 03:15:10 -07:00
2026-09-19 09:40:23 -07:00
2026-09-20 11:48:28 -07:00
2026-09-19 10:22:33 -07:00
2026-09-18 10:00:29 -07:00
2026-09-19 09:30:56 -07:00
2026-09-19 09:30:56 -07:00
2026-09-20 12:44:48 -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-20 11:19:50 -07:00
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 10:49:13 -07:00
2026-09-20 11:12:12 -07:00
2026-09-20 16:41:21 +05:30
2026-09-20 11:52:04 -07:00
2026-09-20 10:05:53 -07:00
2026-09-18 10:38:08 -07:00
2026-09-19 09:29:18 -07:00
2026-09-20 12:15:07 -07:00
2026-09-18 09:56:28 -07:00
2026-09-20 00:19:04 +05:30
2026-09-19 12:30:32 -07:00
2026-09-20 11:52:45 -07:00
2026-09-20 10:39:01 -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-20 12:47:14 -07:00
2026-09-20 10:22:27 -07:00
2026-09-20 10:50:27 -07:00
2026-09-20 12:03:06 -07:00
2026-09-18 10:00:29 -07:00
2026-09-20 10:05:53 -07:00
2026-09-18 10:15:11 -07:00
2026-09-20 10:19:25 -07:00
2026-09-19 10:05:26 -07:00
2026-09-20 11:28:15 -07:00
2026-09-19 00:10:41 +05:30
2026-09-20 10:24:53 -07:00
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-20 10:13:26 -07:00
2026-09-20 10:08:02 -07:00
2026-09-18 11:03:57 -07:00
2026-09-18 12:48:16 -07:00
2026-09-20 10:41:25 -07:00
2026-09-18 10:10:05 -07:00
2026-09-20 12:47:14 -07:00
2026-09-20 15:17:14 +05:30
2026-09-19 09:53:48 -07:00
2026-09-20 11:14:00 -07:00
2026-09-20 11:50:48 -07:00
2026-09-20 10:03:32 -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-20 12:50:53 -07:00
2026-09-20 12:40:36 -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-20 11:14:00 -07:00
2026-09-19 10:22:01 -07:00
2026-09-20 14:02:17 +05:30
2026-09-18 09:52:03 -07:00
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-20 10:16:51 -07:00
2026-09-20 10:02:22 -07:00
2026-09-19 11:58:06 -07:00
2026-09-20 10:44:52 -07:00
2026-09-19 20:54:06 -07:00
2026-09-19 21:11:30 -07:00
2026-09-20 11:49:00 -07:00
2026-09-20 11:52:45 -07:00
2026-09-20 12:44:48 -07:00
2026-09-20 20:29:14 +05:30
2026-09-19 01:43:14 +05:30
2026-09-20 10:29:54 -07:00
2026-09-19 20:45:06 -07:00
2026-09-20 10:14:01 -07:00
2026-09-20 10:01:58 -07:00
2026-09-20 10:06:29 -07:00
2026-09-20 12:51:30 -07:00
2026-09-20 11:55:07 -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-18 09:55:21 -07:00
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-20 10:08:37 -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-20 11:30:36 -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-20 12:44:48 -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 09:52:06 -07:00
2026-09-20 00:03:06 -07:00
2026-09-19 23:52:01 -07:00
2026-09-20 10:29:35 -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-20 10:21:52 -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-20 12:45:24 -07:00
2026-09-18 10:18:40 -07:00
2026-09-19 10:56:19 -07:00
2026-09-20 09:20:51 -07:00
2026-09-20 11:54:02 -07:00
2026-09-20 15:15:36 +05:30
2026-09-19 03:35:57 -07:00
2026-09-20 12:39:58 -07:00
2026-09-20 16:41:21 +05:30
2026-09-20 10:40:12 -07:00