diff --git a/components/reasoning-workspace.jsx b/components/reasoning-workspace.jsx index 79b4f20..1ce0e69 100644 --- a/components/reasoning-workspace.jsx +++ b/components/reasoning-workspace.jsx @@ -169,90 +169,106 @@ function FocusedQuestionBody({ setFollowUpQuestion, focusedContributions, }) { + const hasContent = focused?.question?.trim() || formulationStep === "active" || processingStep === "active" || focused?.error; + const hasResult = Boolean(focused?.result); + return ( <> - {isFocused && (() => { - const hasContent = focused?.question?.trim() || formulationStep === "active" || processingStep === "active" || focused?.error; + {isFocused && hasContent && ( +
+
+ {focused?.question?.trim() ? ( +
+

Question

+

{focused.question}

+
+ ) : formulationStep === "active" ? ( +

{formulateMsg}

+ ) : null} - if (!hasContent) return null; + {focused?.question?.trim() && processingStep !== "active" && focused.status === "formulated" && ( +
+ +