fix(subagent): close terminal teardown races
This commit is contained in:
6 files changed
+135
-30
No files matched your search
@@ -256,7 +256,7 @@ export class CodexAppServerWire {
|
||||
}
|
||||
|
||||
private async guarded<T>(pending: Promise<T>, signal: AbortSignal): Promise<T> {
|
||||
const withFatal = Promise.race([pending, this.fatal.promise])
|
||||
const withFatal = Promise.race([this.fatal.promise, pending])
|
||||
return raceAbort(withFatal, signal)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user