Commit 7855eaa
committed
Add abort signal pre-checks to prevent starting cancelled operations
AbortSignal events don't fire retroactively, so if a signal is already
aborted when a method is called, the abort listener never fires and the
operation runs to completion despite being cancelled.
Added pre-checks at operation start in:
- SSHRuntime.exec(): Short-circuit before spawning SSH process
- SSHRuntime.syncProjectToRemote(): Check at function entry and before bundle spawn
This ensures operations cancelled between sequential steps don't start.
Addresses Codex feedback.1 parent d388f1b commit 7855eaa
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
516 | 521 | | |
517 | 522 | | |
518 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
519 | 529 | | |
520 | 530 | | |
521 | 531 | | |
| |||
541 | 551 | | |
542 | 552 | | |
543 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
544 | 560 | | |
545 | 561 | | |
546 | 562 | | |
| |||
0 commit comments