feat: resume orphaned in-progress tasks on engine restart

This commit is contained in:
Dustin Byrne
2026-03-25 21:42:47 -04:00
parent 0e023c7b2b
commit 99502e4e05
2 changed files with 27 additions and 0 deletions

View File

@@ -156,6 +156,11 @@ export async function runDashboard(port: number, opts: { engine?: boolean; open?
triage.start();
scheduler.start();
// ── Startup sweep: resume orphaned in-progress tasks ──────────────
executor.resumeOrphaned().catch((err) =>
console.error("[engine] Failed to resume orphaned tasks:", err),
);
// ── Startup sweep: enqueue any tasks already in "in-review" ───────
if (settings.autoMerge) {
const existing = await store.listTasks();