Commit 6f5ded6
committed
fix(builder[here]): Move rename-conflict check before session mutation
build(here=True) was setting options, environment, and hooks on the
session before checking if the target session name already exists. If
rename failed, the user's session was left with stale hooks/options.
Now checks for conflicts first, before any session state is modified.1 parent cefea02 commit 6f5ded6
1 file changed
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
537 | 549 | | |
538 | 550 | | |
539 | 551 | | |
| |||
575 | 587 | | |
576 | 588 | | |
577 | 589 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | 590 | | |
590 | 591 | | |
591 | 592 | | |
| |||
0 commit comments