fix(runtime): close portable backend boundary gaps

This commit is contained in:
Tianyi Cui
2026-08-08 21:27:58 +08:00
parent c1d550de58
commit 124fc6a611
7 files changed
+59 -14

No files matched your search

@@ -59,9 +59,10 @@ export class LocalSubprocessService extends SubprocessService {
pending.push(handle.done.catch(() => {}).then(() => handle.waitForExit()))
}
for (const terminal of this.terminals) {
pending.push(terminal.terminate().then(() => { this.terminals.delete(terminal) }))
pending.push(terminal.terminate())
}
this.live.clear()
this.terminals.clear()
const outcomes = [
...await Promise.allSettled(pending),
...await Promise.allSettled([rm(this.runtimeRoot, { recursive: true, force: true })]),