diff --git a/src-web/components/Sidebar.tsx b/src-web/components/Sidebar.tsx index 89f20f10..aebfef9c 100644 --- a/src-web/components/Sidebar.tsx +++ b/src-web/components/Sidebar.tsx @@ -646,7 +646,11 @@ const SidebarItem = forwardRef(function SidebarItem( label: 'Duplicate', hotkeyAction: 'request.duplicate', leftSlot: , - onSelect: () => duplicateRequest.mutate(), + onSelect: () => { + if (activeRequestId === itemId) { + duplicateRequest.mutate(); + } + }, }, { key: 'deleteRequest',