fix: harden agent worker crash handling

This commit is contained in:
Yahya Alhinai
2026-06-28 03:38:50 +00:00
parent 745f0032f7
commit d9e6e8cef4
3 changed files with 79 additions and 13 deletions
+5 -1
View File
@@ -35,7 +35,11 @@ export class PodMan {
if (c)
c.hasUnpushedChanges = msg.report.unpushedCount > 0 || msg.report.dirtyFiles.length > 0;
}
if (msg.type === 'ACK') void updateInterventionStatus(msg.interventionId, msg.status);
if (msg.type === 'ACK') {
void updateInterventionStatus(msg.interventionId, msg.status).catch((err) =>
console.error(`[memory] intervention ack failed: ${(err as Error).message}`),
);
}
} catch {
/* ignore malformed */
}