fix: harden run completion checks and graceful timeout
This commit is contained in:
@@ -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}`)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user