From 5de0c57cce5c76ee36c4ed0d3e71b23b99802b48 Mon Sep 17 00:00:00 2001 From: robbond Date: Tue, 4 Aug 2026 18:19:07 +0100 Subject: [PATCH] fix: preserve tldr investigation hierarchy --- components/reasoning-workspace.jsx | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/components/reasoning-workspace.jsx b/components/reasoning-workspace.jsx index 16eca54..c7f2495 100644 --- a/components/reasoning-workspace.jsx +++ b/components/reasoning-workspace.jsx @@ -478,20 +478,7 @@ export default function ReasoningWorkspace({ ) : ( <> - {/* ── 1. Terminal state: outcome card (no active question) ─ */} - {status === "success" && !canAnswer && graph && !isUpdating && genuineCompletion && } - {status === "success" && !canAnswer && graph && !isUpdating && !genuineCompletion && } - - {/* ── 2. Current understanding (when meaningful) ─ */} - {(graph?.currentSummary || (status === "success" && !canAnswer)) && } - - {/* ── 3. Original situation (always-visible reference) ─ */} - - - {/* ── 4. Investigation history ───────────────────── */} - {investigationHistory.length > 0 && } - - {/* ── Active investigation: question + form + acknowledgement ─ */} + {/* ── Active investigation: question + form (top priority) ─ */} {canAnswer && ( <> @@ -531,7 +518,18 @@ export default function ReasoningWorkspace({ )} - {/* ── 5. Developer details (collapsed by default) ── */} + {/* ── Terminal state: outcome card (no active question) ─ */} + {status === "success" && !hasSelectedQuestion && graph && genuineCompletion && } + {status === "success" && !hasSelectedQuestion && graph && !genuineCompletion && } + + {/* ── Supporting sections (same order for active and terminal) ─ */} + {(graph?.currentSummary || (status === "success" && !canAnswer)) && } + + + + {investigationHistory.length > 0 && } + + {/* ── Developer details (collapsed by default) ── */} {(status === "success" || status === "error") && graph && (