From 1405d0a7603ca140e49381ca83c46dadd42f68a6 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 21 Dec 2025 04:46:34 -0600 Subject: [PATCH] AI service errors take precedence over console errors in Quilly --- src/components/Shakespeare/ChatPane.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Shakespeare/ChatPane.tsx b/src/components/Shakespeare/ChatPane.tsx index 03ee7f06..7b4ba44f 100644 --- a/src/components/Shakespeare/ChatPane.tsx +++ b/src/components/Shakespeare/ChatPane.tsx @@ -96,8 +96,9 @@ export const ChatPane = forwardRef(({ const [templateInfo, setTemplateInfo] = useState<{ name: string; description: string; url: string } | null>(null); const [showTemplateInfo, setShowTemplateInfo] = useState(false); - // Determine which error to show - console error takes priority over AI errors - const displayError = consoleError || aiError; + // Determine which error to show - AI errors take priority over console errors + // since they are more immediately relevant to the user's current action + const displayError = aiError || consoleError; // Use external state if provided, otherwise default to false const isBuildLoading = externalIsBuildLoading || false;