Skip to content

Commit 727a8cf

Browse files
committed
fix(agents): preserve restart terminal precedence
1 parent cc3d647 commit 727a8cf

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/agents/subagent-registry.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,15 +1097,6 @@ function ensureListener() {
10971097
const livenessState =
10981098
typeof evt.data?.livenessState === "string" ? evt.data.livenessState : undefined;
10991099
const stopReason = typeof evt.data?.stopReason === "string" ? evt.data.stopReason : undefined;
1100-
if (phase === "error") {
1101-
schedulePendingLifecycleError({
1102-
runId: evt.runId,
1103-
endedAt,
1104-
startedAt,
1105-
error,
1106-
});
1107-
return;
1108-
}
11091100
// sessions_yield ends the turn by aborting the run signal, so a yielded
11101101
// terminal can also look aborted. An explicit yield is authoritative — pause,
11111102
// don't kill — else the tracking task settles `cancelled` with a false notice (#92448).

0 commit comments

Comments
 (0)