Commit 71fc525
authored
fix(sandbox): scope user-driven SANDBOX_START to the locked provider kind (#4478)
Auto-start and self-heal already passed sandboxProviderKind to
SANDBOX_START so provisioning stays pinned to the thread's locked
provider (#4025), but the user-driven start() — which retry() and
resume() also call — built its args without it. Retrying a failed
locked-provider sandbox (or resuming a suspended one) could get
re-provisioned on a different provider than the one the preview is
locked to, the exact 'different-provider sibling' the surrounding code
says should never happen.
Extract the shared arg-builder (buildSandboxStartArgs) so all three
call sites stay in sync, and add a regression test.1 parent 06e19fd commit 71fc525
2 files changed
Lines changed: 51 additions & 8 deletions
File tree
- apps/mesh/src/web/components/sandbox/hooks
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
133 | 154 | | |
134 | 155 | | |
135 | 156 | | |
| |||
Lines changed: 30 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
71 | 86 | | |
72 | 87 | | |
73 | 88 | | |
| |||
239 | 254 | | |
240 | 255 | | |
241 | 256 | | |
242 | | - | |
243 | | - | |
244 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
245 | 262 | | |
246 | 263 | | |
247 | 264 | | |
| |||
276 | 293 | | |
277 | 294 | | |
278 | 295 | | |
279 | | - | |
280 | | - | |
281 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
282 | 301 | | |
283 | 302 | | |
284 | 303 | | |
| |||
300 | 319 | | |
301 | 320 | | |
302 | 321 | | |
303 | | - | |
304 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
305 | 327 | | |
306 | 328 | | |
307 | 329 | | |
| |||
0 commit comments