From 48b2c32684dc92afaad26e6280f19467554488ef Mon Sep 17 00:00:00 2001 From: Naman Kumar Date: Mon, 23 Sep 2024 15:50:45 +0530 Subject: [PATCH] Do not show an LLM response when we trigger a code search --- vscode/webviews/chat/Transcript.tsx | 48 +++++++++++++++-------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/vscode/webviews/chat/Transcript.tsx b/vscode/webviews/chat/Transcript.tsx index 6d8a6b3662e5..934af4e7b225 100644 --- a/vscode/webviews/chat/Transcript.tsx +++ b/vscode/webviews/chat/Transcript.tsx @@ -335,29 +335,31 @@ const TranscriptInteraction: FC = memo(props => { defaultOpen={experimentalOneBoxEnabled && humanMessage.intent === 'search'} /> )} - {assistantMessage && !isContextLoading && ( - - )} + {(!experimentalOneBoxEnabled || humanMessage.intent !== 'search') && + assistantMessage && + !isContextLoading && ( + + )} ) }, isEqual)