fix: harden run completion checks and graceful timeout

This commit is contained in:
YeonGyu-Kim
2026-02-17 14:43:27 +09:00
parent 873c29f3d9
commit 0e1c55c5cb
5 changed files with 124 additions and 13 deletions
+8 -1
View File
@@ -65,7 +65,14 @@ async function areAllDescendantsIdle(
for (const child of children) {
const status = allStatuses[child.id]
if (status && status.type !== "idle") {
if (!status) {
console.log(
pc.dim(` Waiting: session ${child.id.slice(0, 8)}... status unknown`)
)
return false
}
if (status.type !== "idle") {
console.log(
pc.dim(` Waiting: session ${child.id.slice(0, 8)}... is ${status.type}`)
)