Repository navigation
Commit 3a9bd01
committed
fix(mothership): scope a desktop tool's Stop to its turn
A desktop tool outlives the chat view that started it, so its Stop belongs
to the turn, not the view: tools are keyed by the turn's stream id, which
survives reader replacement and remounts and differs between chats. Stop in
another chat leaves them running, and Stop from a view reopened on the turn
still reaches them.1 parent 4425571 commit 3a9bd01
3 files changed
Lines changed: 68 additions & 12 deletions
File tree
- apps/sim/app/workspace/[workspaceId]/home/hooks
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2212 | 2212 | | |
2213 | 2213 | | |
2214 | 2214 | | |
2215 | | - | |
| 2215 | + | |
2216 | 2216 | | |
2217 | 2217 | | |
2218 | 2218 | | |
| |||
2264 | 2264 | | |
2265 | 2265 | | |
2266 | 2266 | | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
2267 | 2297 | | |
2268 | 2298 | | |
2269 | 2299 | | |
| |||
Lines changed: 9 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
925 | 929 | | |
926 | 930 | | |
927 | 931 | | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | 932 | | |
936 | 933 | | |
937 | 934 | | |
| |||
1586 | 1583 | | |
1587 | 1584 | | |
1588 | 1585 | | |
1589 | | - | |
| 1586 | + | |
1590 | 1587 | | |
1591 | 1588 | | |
1592 | 1589 | | |
| |||
2162 | 2159 | | |
2163 | 2160 | | |
2164 | 2161 | | |
2165 | | - | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
2166 | 2165 | | |
2167 | 2166 | | |
2168 | 2167 | | |
| |||
4434 | 4433 | | |
4435 | 4434 | | |
4436 | 4435 | | |
4437 | | - | |
4438 | | - | |
| 4436 | + | |
4439 | 4437 | | |
4440 | 4438 | | |
4441 | 4439 | | |
| |||
0 commit comments