[codex] Add runtime lifecycle recovery and live issue visibility (#4419)

This commit is contained in:
Dotta 2026-04-24 15:50:32 -05:00 committed by GitHub
parent 9a8d219949
commit 5a0c1979cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
121 changed files with 9625 additions and 2044 deletions

View file

@ -698,6 +698,12 @@ export async function startServer(): Promise<StartedServer> {
logger.warn({ ...reconciled }, "startup issue-graph liveness reconciliation created escalations");
}
})
.then(async () => {
const scanned = await heartbeat.scanSilentActiveRuns();
if (scanned.created > 0 || scanned.escalated > 0) {
logger.warn({ ...scanned }, "startup active-run output watchdog created review work");
}
})
.catch((err) => {
logger.error({ err }, "startup heartbeat recovery failed");
});
@ -750,6 +756,12 @@ export async function startServer(): Promise<StartedServer> {
logger.warn({ ...reconciled }, "periodic issue-graph liveness reconciliation created escalations");
}
})
.then(async () => {
const scanned = await heartbeat.scanSilentActiveRuns();
if (scanned.created > 0 || scanned.escalated > 0) {
logger.warn({ ...scanned }, "periodic active-run output watchdog created review work");
}
})
.catch((err) => {
logger.error({ err }, "periodic heartbeat recovery failed");
});