fix(bash): kept persistent shells after cancel

Stopped marking persistent bash sessions as permanently broken when the JavaScript abort or timeout race wins.

Stopped the Rust descendant kill-wave helper once no cancellation targets remain so later commands are not swept into old cancels.

Fixes #1347
This commit is contained in:
roboomp
2026-05-25 18:40:22 +00:00
parent de5b0a51e2
commit 8e5c7c9bf1
3 changed files with 24 additions and 12 deletions
@@ -207,9 +207,6 @@ export async function executeBash(command: string, options?: BashExecutorOptions
void runPromise.catch(() => undefined);
if (shellSession) {
resetSession = true;
// Fall back to one-shot execution for the rest of the process once
// a persistent session has stopped responding to cancellation.
brokenShellSessions.add(sessionKey);
}
return {
exitCode: undefined,