diff --git a/ee/tabby-ui/app/search/components/assistant-message-section.tsx b/ee/tabby-ui/app/search/components/assistant-message-section.tsx index 3cc3d429d65e..12a8f84efdbb 100644 --- a/ee/tabby-ui/app/search/components/assistant-message-section.tsx +++ b/ee/tabby-ui/app/search/components/assistant-message-section.tsx @@ -38,11 +38,12 @@ import { IconBlocks, IconBug, IconChevronRight, + IconCircleDot, IconEdit, + IconGitPullRequest, IconLayers, IconPlus, IconRefresh, - IconRemove, IconSparkles, IconSpinner, IconTrash @@ -53,6 +54,7 @@ import { TooltipContent, TooltipTrigger } from '@/components/ui/tooltip' +import { ChatContext } from '@/components/chat/chat' import { CodeReferences } from '@/components/chat/code-references' import { CopyButton } from '@/components/copy-button' import { @@ -62,7 +64,6 @@ import { } from '@/components/message-markdown' import { ConversationMessage, SearchContext, SOURCE_CARD_STYLE } from './search' -import { ChatContext } from '@/components/chat/chat' export function AssistantMessageSection({ message, @@ -92,7 +93,7 @@ export function AssistantMessageSection({ onUpdateMessage } = useContext(SearchContext) - const {serverCapabilities}= useContext(ChatContext) + const { serverCapabilities } = useContext(ChatContext) const [isEditing, setIsEditing] = useState(false) const [showMoreSource, setShowMoreSource] = useState(false) @@ -424,9 +425,7 @@ function SourceCard({ conversationId, source, showMore, - showDevTooltip, - isDeletable, - onDelete + showDevTooltip }: { conversationId: string source: AttachmentDocItem @@ -436,7 +435,6 @@ function SourceCard({ onDelete?: () => void }) { const { setDevPanelOpen, setConversationIdForDev } = useContext(SearchContext) - const { hostname } = new URL(source.link) const [devTooltipOpen, setDevTooltipOpen] = useState(false) const onOpenChange = (v: boolean) => { @@ -467,47 +465,7 @@ function SourceCard({ }} onClick={() => window.open(source.link)} > - {isDeletable && ( -
- {source.title} -
-- {normalizedText(getContent(source))} -
-- {hostname.replace('www.', '').split('/')[0]} -
-+ {source.title} +
++ {normalizedText(getContent(source))} +
++ {hostname.replace('www.', '').split('/')[0]} +
+