Q124: the file scan covers the whole file and says what it did and did not check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 20:09:03 -04:00
1 parent 91fa6b5f1e
commit 7a9059fbea
9 files changed
+175 -31

No files matched your search

+2 -1
View File
@@ -1,6 +1,6 @@
import type { DatabaseSync } from "node:sqlite";
import { AuditService } from "../services/audit-service";
import { preserveRecordedFiles } from "../services/files/file-object-store";
import { preserveRecordedFiles, rescanLegacyFiles } from "../services/files/file-object-store";
const INTERRUPTED_MESSAGE = "Interrupted by application shutdown before completion.";
@@ -16,6 +16,7 @@ const INTERRUPTED_MESSAGE = "Interrupted by application shutdown before completi
*/
export function recoverInterruptedWork(db: DatabaseSync): void {
preserveRecordedFiles(db);
rescanLegacyFiles(db);
const now = new Date().toISOString();
const audit = new AuditService(db);
const runs = db.prepare("select id, org_id, task_id from task_runs where state = 'running'")