diff --git a/desktop/src/components/chat/AssistantOutputTargetCard.test.tsx b/desktop/src/components/chat/AssistantOutputTargetCard.test.tsx
index 40e69906..d43ebffc 100644
--- a/desktop/src/components/chat/AssistantOutputTargetCard.test.tsx
+++ b/desktop/src/components/chat/AssistantOutputTargetCard.test.tsx
@@ -93,12 +93,9 @@ describe('AssistantOutputTargetCard', () => {
expect(openBrowser).toHaveBeenCalledWith('s1', 'http://localhost:5173/')
})
- it('copies the normalized path when Copy is clicked', () => {
- const writeText = vi.fn().mockResolvedValue(undefined)
- Object.assign(navigator, { clipboard: { writeText } })
+ it('does not render a copy button for output target cards', () => {
render()
- fireEvent.click(screen.getByLabelText('assistantOutputs.copy'))
- expect(writeText).toHaveBeenCalledWith('docs/readme.md')
+ expect(screen.queryByLabelText('assistantOutputs.copy')).not.toBeInTheDocument()
})
it('opens the open-with menu with URL items for a localhost target', async () => {
diff --git a/desktop/src/components/chat/AssistantOutputTargetCard.tsx b/desktop/src/components/chat/AssistantOutputTargetCard.tsx
index 8ddca096..83413cf1 100644
--- a/desktop/src/components/chat/AssistantOutputTargetCard.tsx
+++ b/desktop/src/components/chat/AssistantOutputTargetCard.tsx
@@ -1,6 +1,6 @@
import { useCallback, useState } from 'react'
import type { MouseEvent as ReactMouseEvent } from 'react'
-import { ChevronDown, Copy, ExternalLink, Globe } from 'lucide-react'
+import { ChevronDown, ExternalLink, Globe } from 'lucide-react'
import type { AssistantOutputTarget } from '../../lib/assistantOutputTargets'
import { useTranslation, type TranslationKey } from '../../i18n'
import { OpenWithMenu } from '../common/OpenWithMenu'
@@ -11,7 +11,6 @@ import { getServerBaseUrl } from '../../lib/desktopRuntime'
import { useOpenTargetStore } from '../../stores/openTargetStore'
import { useBrowserPanelStore } from '../../stores/browserPanelStore'
import { useWorkspacePanelStore } from '../../stores/workspacePanelStore'
-import { copyTextToClipboard } from './clipboard'
type Props = {
target: AssistantOutputTarget
@@ -53,11 +52,6 @@ export function AssistantOutputTargetCard({ target, sessionId, workDir }: Props)
})
}, [sessionId, target.href])
- const handleCopy = useCallback((event: ReactMouseEvent) => {
- event.stopPropagation()
- void copyTextToClipboard(target.normalizedPath ?? target.href)
- }, [target.href, target.normalizedPath])
-
const handleOpenWith = useCallback((event: ReactMouseEvent) => {
event.stopPropagation()
// Toggle: a second click on the same trigger closes the menu. OpenWithMenu's
@@ -125,15 +119,6 @@ export function AssistantOutputTargetCard({ target, sessionId, workDir }: Props)
>
-