From 10732f49b0cf4379bc0270b45ab5525ee80eb584 Mon Sep 17 00:00:00 2001 From: blackhao <13851610112@163.com> Date: Thu, 11 Dec 2025 01:28:42 -0600 Subject: fix trace --- frontend/src/components/Sidebar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontend/src/components/Sidebar.tsx') diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index 700574a..4febe4f 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -627,9 +627,9 @@ const Sidebar: React.FC = ({ isOpen, onToggle, onInteract }) => { setQuickChatMessages(fullMessages); setQuickChatSentFiles(buildSentFilesFromMessages(fullMessages)); - // Set last node ID: if current node has response, start from here. - // Otherwise start from trace source (which is the last completed node) - setQuickChatLastNodeId(hasResponse ? selectedNode.id : trace.sourceNodeId); + // Always set last node ID to current selected node + // handleQuickChatSend will decide whether to overwrite (if empty) or create new node (if has response) + setQuickChatLastNodeId(selectedNode.id); } setQuickChatOpen(true); -- cgit v1.2.3