From d17ec26c56055bee2567e1247ce15013541773b3 Mon Sep 17 00:00:00 2001 From: balibabu Date: Wed, 19 Mar 2025 18:54:23 +0800 Subject: [PATCH] Fix: In the Agent's workflow, the input content cannot be wrapped, and \n will not work, otherwise an error will be reported #6241 (#6284) ### What problem does this PR solve? Fix: In the Agent's workflow, the input content cannot be wrapped, and \n will not work, otherwise an error will be reported #6241 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/pages/chat/hooks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/pages/chat/hooks.ts b/web/src/pages/chat/hooks.ts index cf09384db..41d862744 100644 --- a/web/src/pages/chat/hooks.ts +++ b/web/src/pages/chat/hooks.ts @@ -343,8 +343,8 @@ export const useHandleMessageInputChange = () => { const handleInputChange: ChangeEventHandler = (e) => { const value = e.target.value; - const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t'); - setValue(nextValue); + // const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t'); + setValue(value); }; return {