Skip to content

Commit 4e460b1

Browse files
committed
fix(web): allow folder references in question answers
1 parent b89e05f commit 4e460b1

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎apps/web/src/components/chat/ChatComposer.tsx‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5730,7 +5730,8 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
57305730
text.length === 0 ||
57315731
isConnecting ||
57325732
isComposerApprovalState ||
5733-
pendingUserInputs.length > 0 ||
5733+
activePendingIsResponding ||
5734+
(pendingUserInputs.length > 0 && !activePendingProgress?.activeQuestion) ||
57345735
projectSelectionRequired ||
57355736
(options?.citationCommentAnchor && !composerEditorRef.current)
57365737
) {
@@ -5806,10 +5807,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
58065807
toastManager.add({
58075808
type: "error",
58085809
title: "Unable to add folder",
5809-
description:
5810-
pendingUserInputs.length > 0
5811-
? "Finish answering the current question, then add the folder to your next message."
5812-
: "The composer is busy; try again once it is ready.",
5810+
description: "The composer is busy; try again once it is ready.",
58135811
});
58145812
break;
58155813
}

0 commit comments

Comments
 (0)