diff options
Diffstat (limited to 'frontend/src')
| -rw-r--r-- | frontend/src/components/Sidebar.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
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<SidebarProps> = ({ 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); |
