Skip to content

Commit 26da5b0

Browse files
fix(server): preserve interrupted steering ownership after restart
1 parent 6a20ce3 commit 26da5b0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎apps/server/src/orchestration-v2/RestartSteering.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export function restartPendingMessageIds(
3535
current = previous;
3636
pending.unshift(...(current.restartPendingMessageIds ?? []));
3737
}
38-
// A sibling may already own this input. Keep its live work and proven
39-
// acceptance separate from the ambiguous delivery of the cut chain.
38+
// A sibling may already own this input. Keep its live work, proven acceptance,
39+
// and explicit stop separate from the ambiguous delivery of the cut chain.
4040
return [...new Set(pending)].filter(
4141
(id) =>
4242
!runs.some(
@@ -49,7 +49,8 @@ export function restartPendingMessageIds(
4949
run.status === "preparing" ||
5050
run.status === "starting" ||
5151
run.status === "running" ||
52-
run.status === "waiting"),
52+
run.status === "waiting" ||
53+
run.status === "interrupted"),
5354
),
5455
);
5556
}

0 commit comments

Comments
 (0)