Skip to content

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

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)

balibabud17ec26c5605
diff --git a/web/src/pages/chat/hooks.ts b/web/src/pages/chat/hooks.ts
index cf09384db1..41d8627445 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<HTMLTextAreaElement> = (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 {