fix: unify reasoning mode across submissions

This commit is contained in:
2026-08-05 08:27:22 +01:00
parent c87fd65e13
commit 6d11c1d503
5 changed files with 132 additions and 4 deletions
+4 -2
View File
@@ -29,7 +29,7 @@ function humaniseDuration(seconds) {
/* ── Component ────────────────────────────────────────────── */
function InvestigationSummaryPanel({ graph, selectedQuestion, result }) {
function InvestigationSummaryPanel({ graph, selectedQuestion, result, updateStatus }) {
// ── Current status ────────────────────────────────────────────
// TODO: reasoning should emit an explicit status field such as
// "investigating", "evidence_limit_reached", "resolution_achieved".
@@ -38,7 +38,9 @@ function InvestigationSummaryPanel({ graph, selectedQuestion, result }) {
const hasGraph = Boolean(graph);
let currentStatus;
if (!hasGraph) {
if (updateStatus === "loading") {
currentStatus = { label: "Reasoning", level: "investigating" };
} else if (!hasGraph) {
currentStatus = { label: "Not started", level: "idle" };
} else if (isInvestigating) {
currentStatus = { label: "Investigation in progress", level: "investigating" };