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 && (