fix(e2b): await teardown and honor published status

This commit is contained in:
Tianyi Cui
2026-07-29 10:14:06 +08:00
parent d0648446c9
commit 896bcd64a1
3 changed files with 54 additions and 5 deletions
+4 -1
View File
@@ -67,7 +67,10 @@ export class E2BSubprocessService extends SubprocessService {
for (const cleanup of failedTerminalSetupCleanups) {
pending.push(cleanup().then(() => { this.failedTerminalSetupCleanups.delete(cleanup) }))
}
await Promise.all(pending)
const outcomes = await Promise.allSettled(pending)
for (const outcome of outcomes) {
if (outcome.status === 'rejected') throw outcome.reason
}
}, 'e2b subprocess teardown')
}