From 1dfc24003b119d63ce6c04a6fc50814153593c76 Mon Sep 17 00:00:00 2001 From: balibabu Date: Thu, 25 Jun 2026 17:32:24 +0800 Subject: [PATCH] Fix: An empty message notification pops up at the top of the agent conversation. (#16353) --- web/src/pages/agent/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = (