fix: move LoadingOverlay outside hasSelectedQuestion gate

This commit is contained in:
2026-08-05 09:09:18 +01:00
parent 975a965b10
commit 6ae167175c
+11 -9
View File
@@ -678,8 +678,17 @@ export default function ReasoningWorkspace({
{/* Post-update acknowledgement — only after success, never during loading */} {/* Post-update acknowledgement — only after success, never during loading */}
{updateStatus === "success" && !isUpdating && <UpdateAcknowledgement updateResult={result} />} {updateStatus === "success" && !isUpdating && <UpdateAcknowledgement updateResult={result} />}
{/* ── Response area (replaced by loading / error during reasoning) ─ */} {/* ── Local update loading (always visible when updating) ─ */}
{!isUpdating && canAnswer ? ( {isUpdating && (
<LoadingOverlay
elapsed={updateElapsed}
currentMessage={updateMsg}
variant="update"
/>
)}
{/* ── Response form — hidden during update loading ─ */}
{!isUpdating && canAnswer && (
<form onSubmit={handleUpdateCaptureAndSubmit} className="space-y-4 rounded-lg border border-gray-200 bg-white p-5"> <form onSubmit={handleUpdateCaptureAndSubmit} className="space-y-4 rounded-lg border border-gray-200 bg-white p-5">
<div> <div>
<label htmlFor="rw-answer" className="mb-2 block text-sm font-medium text-gray-700"> <label htmlFor="rw-answer" className="mb-2 block text-sm font-medium text-gray-700">
@@ -708,13 +717,6 @@ export default function ReasoningWorkspace({
</button> </button>
</div> </div>
</form> </form>
) : !isUpdating ? null : (
/* Local update loading card — replaces the response panel during reasoning */
<LoadingOverlay
elapsed={updateElapsed}
currentMessage={updateMsg}
variant="update"
/>
)} )}
{/* ── Terminal state: outcome card — hidden during update loading ─ */} {/* ── Terminal state: outcome card — hidden during update loading ─ */}