From 49be10ead8aaeffbc93199c68b9c18092e103226 Mon Sep 17 00:00:00 2001 From: Ara Date: Mon, 1 Dec 2025 15:16:16 -0800 Subject: [PATCH] fix: move OptionsButtons outside WithCopyButton component (#7783) Relocate OptionsButtons component to be a sibling of WithCopyButton rather than a child. This fixes the component hierarchy for followup and completion_result message types, ensuring proper rendering and interaction behavior. Also adds QuoteButton support to completion_result. --- webview-ui/src/components/chat/ChatRow.tsx | 52 +++++++++++----------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 05491cbf..5818d1a6 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -1844,15 +1844,6 @@ export const ChatRowContent = memo( ref={contentRef} textToCopy={question}> - 0) - } - options={options} - selected={selected} - /> {quoteButtonState.visible && ( )} + 0) + } + options={options} + selected={selected} + /> ) case "new_task": @@ -1930,12 +1930,23 @@ export const ChatRowContent = memo( response = message.text } return ( - - + <> + + + {quoteButtonState.visible && ( + { + handleQuoteClick() + }} + top={quoteButtonState.top} + /> + )} + - {quoteButtonState.visible && ( - { - handleQuoteClick() - }} - top={quoteButtonState.top} - /> - )} - + ) } default: