diff --git a/frontend/lib/components/TextEditor/components/TextEditorSearchBar/TextEditorSearchBar.tsx b/frontend/lib/components/TextEditor/components/TextEditorSearchBar/TextEditorSearchBar.tsx index bd802ef3f37d..28eb28854162 100644 --- a/frontend/lib/components/TextEditor/components/TextEditorSearchBar/TextEditorSearchBar.tsx +++ b/frontend/lib/components/TextEditor/components/TextEditorSearchBar/TextEditorSearchBar.tsx @@ -40,6 +40,11 @@ const TextEditorSearchBar = forwardRef( context: context, }) .run(); + } else { + editor.commands.createAiResponse({ + content: messages[0].assistant, + context: null, + }); } }, [messages.length, router, editor, chatInput.generatingAnswer]);