From cadf74d461b47cd2b7b5963002717a31adb12fa1 Mon Sep 17 00:00:00 2001 From: robbond Date: Tue, 4 Aug 2026 19:04:50 +0100 Subject: [PATCH] refactor: unify terminal result cards and simplify history indicators --- components/reasoning-workspace.jsx | 38 ++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/components/reasoning-workspace.jsx b/components/reasoning-workspace.jsx index 3241341..bffe911 100644 --- a/components/reasoning-workspace.jsx +++ b/components/reasoning-workspace.jsx @@ -159,21 +159,31 @@ function hasGenuineCompletion(graph) { } // ── Completion card (terminal state when all unknowns resolved) ─ -function CompletionCard() { +function CompletionCard({ summary }) { return (

Investigation complete

-

The current investigation has reached a justified conclusion.

+

The available evidence supports the following understanding.

+ {summary && ( +
+

{summary}

+
+ )}
); } // ── Evidence-limit card (terminal state: no next question) ─────── -function EvidenceLimitCard() { +function EvidenceLimitCard({ summary }) { return (

Current evidence limit reached

-

Further progress requires additional evidence.

+ {summary && ( +
+

{summary}

+
+ )} +

Further progress requires additional evidence.

); } @@ -221,13 +231,11 @@ function InvestigationHistoryCard({ turn }) { open={!isCollapsed} > - {isCollapsed ? "Q: " : "✓ "} + {isCollapsed ? "▶ " : "▼ "} + {"✓ "} {turn.question.length > 60 && !isCollapsed ? turn.question.slice(0, 60) + "…" : turn.question} - {!isCollapsed && ( - — answered - )}
@@ -518,11 +526,17 @@ export default function ReasoningWorkspace({ )} {/* ── Terminal state: outcome card (no active question) ─ */} - {status === "success" && !hasSelectedQuestion && graph && genuineCompletion && } - {status === "success" && !hasSelectedQuestion && graph && !genuineCompletion && } + {status === "success" && !hasSelectedQuestion && graph && genuineCompletion && ( + + )} + {status === "success" && !hasSelectedQuestion && graph && !genuineCompletion && ( + + )} - {/* ── Supporting sections (same order for active and terminal) ─ */} - {hasCurrentSummaryCondition && } + {/* ── Current understanding (active investigation only) ─ */} + {hasCurrentSummaryCondition && !hasSelectedQuestion === false && ( + + )}