From 6ae167175c5adb5eabbfedb097fc198e26019720 Mon Sep 17 00:00:00 2001 From: robbond Date: Wed, 5 Aug 2026 09:09:18 +0100 Subject: [PATCH] fix: move LoadingOverlay outside hasSelectedQuestion gate --- components/reasoning-workspace.jsx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/components/reasoning-workspace.jsx b/components/reasoning-workspace.jsx index 97dc41b..9fb8bbb 100644 --- a/components/reasoning-workspace.jsx +++ b/components/reasoning-workspace.jsx @@ -678,8 +678,17 @@ export default function ReasoningWorkspace({ {/* Post-update acknowledgement — only after success, never during loading */} {updateStatus === "success" && !isUpdating && } - {/* ── Response area (replaced by loading / error during reasoning) ─ */} - {!isUpdating && canAnswer ? ( + {/* ── Local update loading (always visible when updating) ─ */} + {isUpdating && ( + + )} + + {/* ── Response form — hidden during update loading ─ */} + {!isUpdating && canAnswer && (
- ) : !isUpdating ? null : ( - /* Local update loading card — replaces the response panel during reasoning */ - )} {/* ── Terminal state: outcome card — hidden during update loading ─ */}