diff --git a/client/src/components/Chat/Input/AskUserQuestionPopover.tsx b/client/src/components/Chat/Input/AskUserQuestionPopover.tsx index 30125a9041..aeeaa8ac18 100644 --- a/client/src/components/Chat/Input/AskUserQuestionPopover.tsx +++ b/client/src/components/Chat/Input/AskUserQuestionPopover.tsx @@ -1,7 +1,7 @@ import { memo } from 'react'; import { useWatch } from 'react-hook-form'; import { Button } from '@librechat/client'; -import { Check, ChevronDown, CornerDownLeft, X } from 'lucide-react'; +import { Check, ChevronDown, CornerDownLeft, TriangleAlert, X } from 'lucide-react'; import useAskAnswerMode from '~/hooks/Input/useAskAnswerMode'; import { useChatFormContext } from '~/Providers'; import { useLocalize } from '~/hooks'; @@ -37,6 +37,7 @@ function AskUserQuestionPopoverContent({ checked, multiSelect, locked, + errored, toggleChecked, canSubmit, submit, @@ -112,6 +113,15 @@ function AskUserQuestionPopoverContent({ ); })} + {/** A failed submission keeps the question answerable (controls stay + * enabled), but the chat card that would show the error is hidden + * while the popover is up — so surface it here for retry guidance. */} + {errored && ( +
+
+ )}