Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: An empty message notification pops up at the top of the agent conversation. (#16353)

balibabu1dfc24003b11
diff --git a/web/src/pages/agent/utils.ts b/web/src/pages/agent/utils.ts
index 06832ae85f..b56c9b739c 100644
--- a/web/src/pages/agent/utils.ts
+++ b/web/src/pages/agent/utils.ts
@@ -565,8 +565,9 @@ export const buildDslGlobalVariables = (
return { globals: globalVariablesResult, variables: globalVariables };
};
+// TODO: This is caused by `useSendMessageBySSE`; it is recommended to sort out the logic.
export const receiveMessageError = (res: any) =>
- res && (res?.response.status !== 200 || res?.data?.code !== 0);
+ res && res?.response.status !== 200;
// Replace the id in the object with text
export const replaceIdWithText = (