diff --git a/components/reasoning-workspace.jsx b/components/reasoning-workspace.jsx index bffe911..c93b42a 100644 --- a/components/reasoning-workspace.jsx +++ b/components/reasoning-workspace.jsx @@ -223,6 +223,12 @@ function PlainLanguageCard({ summary }) { // ── Investigation history card (readable notebook style) ────── function InvestigationHistoryCard({ turn }) { const isCollapsed = turn._collapsed; + const isAnswered = Boolean(turn.answer?.trim()); + + const displayedQuestion = + isCollapsed && turn.question.length > 60 + ? `${turn.question.slice(0, 60)}…` + : turn.question; return (
- {isCollapsed ? "▶ " : "▼ "} - {"✓ "} - {turn.question.length > 60 && !isCollapsed - ? turn.question.slice(0, 60) + "…" - : turn.question} + {isAnswered && } + {displayedQuestion} -
-

Your answer

+
+

+ Your answer +

{turn.answer}

{turn.acknowledgement && ( <>
-

What changed

-

{turn.acknowledgement}

+

+ What changed +

+

+ {turn.acknowledgement} +

)}