fix: add missing imports for safe navigation in MobileCitationDrawer

resolveSafeNavigationHref and openSafeNavigationHref are called in
MobileCitationDrawer (line 262-263) but were never imported, causing
a ReferenceError crash when mobile users tap a citation source link.

Both functions are correctly imported in citation.tsx and
citation-list.tsx but the import was missed in assistant-message.tsx.
This commit is contained in:
barry3406 2026-04-09 05:43:59 -07:00
parent 7c61668823
commit 025e763694

View file

@ -32,6 +32,7 @@ import { TooltipIconButton } from "@/components/assistant-ui/tooltip-icon-button
import { CommentPanelContainer } from "@/components/chat-comments/comment-panel-container/comment-panel-container";
import { CommentSheet } from "@/components/chat-comments/comment-sheet/comment-sheet";
import type { SerializableCitation } from "@/components/tool-ui/citation";
import { openSafeNavigationHref, resolveSafeNavigationHref } from "@/components/tool-ui/shared/media";
import {
Drawer,
DrawerContent,