Skip to content

Commit ef7b203

Browse files
authored
Merge pull request #127 from jjjrmy/fix-reply-to-chat
FIX: Reply Sends To Wrong Sub-Chat In Multi-Chat Workspace
2 parents 355ec30 + 9fa038c commit ef7b203

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

src/renderer/features/agents/main/active-chat.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3924,15 +3924,17 @@ const ChatViewInner = memo(function ChatViewInner({
39243924
return (
39253925
<SearchHighlightProvider>
39263926
<div className="flex flex-col flex-1 min-h-0 relative">
3927-
{/* Text selection popover for adding text to context */}
3928-
<TextSelectionPopover
3929-
onAddToContext={addTextContext}
3930-
onQuickComment={handleQuickComment}
3931-
onFocusInput={handleFocusInput}
3932-
/>
3927+
{/* Text selection popover for adding text to context - only render for active tab to prevent portaled popovers from inactive tabs capturing clicks */}
3928+
{isActive && (
3929+
<TextSelectionPopover
3930+
onAddToContext={addTextContext}
3931+
onQuickComment={handleQuickComment}
3932+
onFocusInput={handleFocusInput}
3933+
/>
3934+
)}
39333935

3934-
{/* Quick comment input */}
3935-
{quickCommentState && (
3936+
{/* Quick comment input - only render for active tab to prevent portal escaping pointerEvents isolation */}
3937+
{isActive && quickCommentState && (
39363938
<QuickCommentInput
39373939
selectedText={quickCommentState.selectedText}
39383940
source={quickCommentState.source}

0 commit comments

Comments
 (0)