fix: unify reasoning mode across submissions
This commit is contained in:
@@ -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" };
|
||||
|
||||
Reference in New Issue
Block a user