Repository navigation
Commit b7fa794
authored
fix(mothership): cancel desktop tools a signed-out turn starts late, guard the shown-once license key (#8757)
* fix(mothership): cancel desktop tools a signed-out turn starts late, guard the shown-once license key
- A turn's stream now binds to the session it started in. Its tool events can arrive after sign-out stops every desktop tool, and each one then gets an already-aborted lease instead of a fresh controller. A turn started after sign-in runs normally.
- The generated license key counts as an unsaved change, so leaving the Licenses tab asks first, and confirming drops it.
* fix(mothership): bind desktop tools to the session the chat surface mounted in
A send or reconnect still in flight at sign-out reaches the stream reader after the stop, so a per-reader capture took the new session. The surface now takes its session once at mount; signing out leaves or reloads every chat surface.
* test(mothership): assert the license key guard through tab and environment navigation
* test(mothership): mock Chip for the license-key guard tests on top of #8761
#8761 already guards the shown-once license key (generatedKey in isDirty, cleared on discard), so this branch keeps staging's settings page and its tests now assert that guard. The page now renders Chip, which the shared emcn mock does not provide.1 parent d8cb659 commit b7fa794
5 files changed
Lines changed: 267 additions & 28 deletions
File tree
- apps/sim
- app/workspace/[workspaceId]
- home/hooks
- settings/components/mothership
- stores
Lines changed: 38 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
| 50 | + | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | | - | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
71 | 94 | | |
72 | 95 | | |
73 | 96 | | |
Lines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
26 | 56 | | |
27 | 57 | | |
28 | 58 | | |
29 | 59 | | |
30 | 60 | | |
31 | 61 | | |
32 | | - | |
| 62 | + | |
33 | 63 | | |
34 | 64 | | |
35 | 65 | | |
| |||
57 | 87 | | |
58 | 88 | | |
59 | 89 | | |
60 | | - | |
| 90 | + | |
| 91 | + | |
61 | 92 | | |
62 | 93 | | |
| 94 | + | |
| 95 | + | |
63 | 96 | | |
64 | 97 | | |
65 | 98 | | |
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
518 | 520 | | |
519 | 521 | | |
520 | 522 | | |
521 | | - | |
| 523 | + | |
522 | 524 | | |
523 | 525 | | |
524 | | - | |
| 526 | + | |
525 | 527 | | |
526 | 528 | | |
527 | 529 | | |
| |||
1003 | 1005 | | |
1004 | 1006 | | |
1005 | 1007 | | |
| 1008 | + | |
| 1009 | + | |
1006 | 1010 | | |
1007 | 1011 | | |
1008 | 1012 | | |
| |||
1654 | 1658 | | |
1655 | 1659 | | |
1656 | 1660 | | |
1657 | | - | |
| 1661 | + | |
1658 | 1662 | | |
1659 | 1663 | | |
1660 | 1664 | | |
| |||
1666 | 1670 | | |
1667 | 1671 | | |
1668 | 1672 | | |
1669 | | - | |
| 1673 | + | |
1670 | 1674 | | |
1671 | 1675 | | |
1672 | 1676 | | |
| |||
2297 | 2301 | | |
2298 | 2302 | | |
2299 | 2303 | | |
2300 | | - | |
| 2304 | + | |
2301 | 2305 | | |
2302 | 2306 | | |
2303 | 2307 | | |
| |||
2318 | 2322 | | |
2319 | 2323 | | |
2320 | 2324 | | |
2321 | | - | |
| 2325 | + | |
2322 | 2326 | | |
2323 | 2327 | | |
2324 | 2328 | | |
| |||
2351 | 2355 | | |
2352 | 2356 | | |
2353 | 2357 | | |
2354 | | - | |
| 2358 | + | |
2355 | 2359 | | |
2356 | 2360 | | |
2357 | 2361 | | |
| |||
0 commit comments