Commit 3418fc9
committed
fix(sandbox): clear active session after deleting the active sandbox
When the deleted sandbox is the currently active one (tracked via
HOTDATA_SANDBOX env var or config.sandbox), clear the cached sandbox
session and config pointer so subsequent commands do not keep routing
through a stale JWT -- mirrors what sandbox set (no args) already does.1 parent 6fae6c9 commit 3418fc9
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
353 | 366 | | |
354 | 367 | | |
355 | 368 | | |
| |||
0 commit comments