diff --git a/src/chat-sidebar.tsx b/src/chat-sidebar.tsx index 1e2b2ff..3ededa1 100644 --- a/src/chat-sidebar.tsx +++ b/src/chat-sidebar.tsx @@ -72,10 +72,10 @@ import type { Contents } from '@jupyterlab/services'; import { extractLLMGeneratedCode, isDarkTheme, - safeAnchorUri, writeTextToClipboard } from './utils'; import { CheckBoxItem } from './components/checkbox'; +import { SafeAnchor } from './components/safe-anchor'; import { mcpServerSettingsToEnabledState } from './components/mcp-util'; import claudeSvgStr from '../style/icons/claude.svg'; import { AskUserQuestion } from './components/ask-user-question'; @@ -836,23 +836,11 @@ function ChatResponse(props: any) { ); case ResponseStreamDataType.Anchor: { - const safeUri = safeAnchorUri(item.content.uri); - if (!safeUri) { - return ( -