RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix(agent): do not create node when dragging from an input handle (#20052)
chanx654fb577f55c
diff --git a/web/src/pages/agent/hooks/use-connection-drag.ts b/web/src/pages/agent/hooks/use-connection-drag.tsindex 7e494397a0..d62b194aee 100644--- a/web/src/pages/agent/hooks/use-connection-drag.ts+++ b/web/src/pages/agent/hooks/use-connection-drag.ts@@ -65,7 +65,16 @@ export const useConnectionDrag = (mouseStartPosRef.current = { x: event.clientX, y: event.clientY };}- if (params && params.nodeId && params.handleId) {+ // Only a drag starting from an output (source) handle may create a+ // downstream node. A drag from an input (target) handle is kept for+ // connecting to another node, but dropping it on the pane must not+ // create a placeholder node or the "next step" menu.+ if (+ params &&+ params.nodeId &&+ params.handleId &&+ params.handleType === 'source'+ ) {connectionStartRef.current = {nodeId: params.nodeId,handleId: params.handleId,