feat(confidence-engine): v0.60j preserve investigation on restart

This commit is contained in:
2026-09-04 10:18:22 +01:00
parent 4bc998ee3f
commit cc3a5dabd4
7 changed files with 551 additions and 7 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
"use client";
import React from "react";
import { listInvestigations, clearInvestigation } from "@/lib/storage/investigation-storage";
import { listInvestigations, restartInvestigation } from "@/lib/storage/investigation-storage";
import Link from "next/link";
import { useRouter } from "next/navigation";
@@ -98,7 +98,7 @@ function Portfolio() {
<button
onClick={() => {
setShowRestartConfirm(null);
try { clearInvestigation(summary.id); } catch (_) { /* storage must not crash caller */ }
try { restartInvestigation(summary.id); } catch (_) { /* storage must not crash caller */ }
setSummaries(listInvestigations());
}}
className="rounded-lg border border-red-400 bg-white px-4 py-2 text-sm font-medium text-red-700 hover:bg-red-50 transition"