Skip to content

Commit

Permalink
Do not show an LLM response when we trigger a code search
Browse files Browse the repository at this point in the history
  • Loading branch information
thenamankumar committed Sep 23, 2024
1 parent a19c01a commit 48b2c32
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions vscode/webviews/chat/Transcript.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,29 +335,31 @@ const TranscriptInteraction: FC<TranscriptInteractionProps> = memo(props => {
defaultOpen={experimentalOneBoxEnabled && humanMessage.intent === 'search'}
/>
)}
{assistantMessage && !isContextLoading && (
<AssistantMessageCell
key={assistantMessage.index}
userInfo={userInfo}
chatEnabled={chatEnabled}
message={assistantMessage}
feedbackButtonsOnSubmit={feedbackButtonsOnSubmit}
copyButtonOnSubmit={copyButtonOnSubmit}
insertButtonOnSubmit={insertButtonOnSubmit}
postMessage={postMessage}
guardrails={guardrails}
humanMessage={humanMessageInfo}
isLoading={assistantMessage.isLoading}
showFeedbackButtons={
!assistantMessage.isLoading &&
!isTranscriptError &&
!assistantMessage.error &&
isLastSentInteraction
}
smartApply={smartApply}
smartApplyEnabled={smartApplyEnabled}
/>
)}
{(!experimentalOneBoxEnabled || humanMessage.intent !== 'search') &&
assistantMessage &&
!isContextLoading && (
<AssistantMessageCell
key={assistantMessage.index}
userInfo={userInfo}
chatEnabled={chatEnabled}
message={assistantMessage}
feedbackButtonsOnSubmit={feedbackButtonsOnSubmit}
copyButtonOnSubmit={copyButtonOnSubmit}
insertButtonOnSubmit={insertButtonOnSubmit}
postMessage={postMessage}
guardrails={guardrails}
humanMessage={humanMessageInfo}
isLoading={assistantMessage.isLoading}
showFeedbackButtons={
!assistantMessage.isLoading &&
!isTranscriptError &&
!assistantMessage.error &&
isLastSentInteraction
}
smartApply={smartApply}
smartApplyEnabled={smartApplyEnabled}
/>
)}
</>
)
}, isEqual)
Expand Down

0 comments on commit 48b2c32

Please sign in to comment.