Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: frontend handle sometimes server not generate the wrong follow up data struct (#7916)
Joel7fdd9643797b
diff --git a/web/app/components/base/chat/chat/hooks.ts b/web/app/components/base/chat/chat/hooks.tsindex a70b1c2ed02..4caa8116df3 100644--- a/web/app/components/base/chat/chat/hooks.ts+++ b/web/app/components/base/chat/chat/hooks.ts@@ -372,11 +372,16 @@ export const useChat = (handleUpdateChatList(newChatList)}if (config?.suggested_questions_after_answer?.enabled && !hasStopResponded.current && onGetSuggestedQuestions) {- const { data }: any = await onGetSuggestedQuestions(- responseItem.id,- newAbortController => suggestedQuestionsAbortControllerRef.current = newAbortController,- )- setSuggestQuestions(data)+ try {+ const { data }: any = await onGetSuggestedQuestions(+ responseItem.id,+ newAbortController => suggestedQuestionsAbortControllerRef.current = newAbortController,+ )+ setSuggestQuestions(data)+ }+ catch (e) {+ setSuggestQuestions([])+ }}},onFile(file) {diff --git a/web/app/components/workflow/panel/debug-and-preview/hooks.ts b/web/app/components/workflow/panel/debug-and-preview/hooks.tsindex 155d2a84ac1..54d3915a136 100644--- a/web/app/components/workflow/panel/debug-and-preview/hooks.ts+++ b/web/app/components/workflow/panel/debug-and-preview/hooks.ts@@ -248,11 +248,16 @@ export const useChat = (}if (config?.suggested_questions_after_answer?.enabled && !hasStopResponded.current && onGetSuggestedQuestions) {- const { data }: any = await onGetSuggestedQuestions(- responseItem.id,- newAbortController => suggestedQuestionsAbortControllerRef.current = newAbortController,- )- setSuggestQuestions(data)+ try {+ const { data }: any = await onGetSuggestedQuestions(+ responseItem.id,+ newAbortController => suggestedQuestionsAbortControllerRef.current = newAbortController,+ )+ setSuggestQuestions(data)+ }+ catch (error) {+ setSuggestQuestions([])+ }}},onMessageEnd: (messageEnd) => {