From 025e76369452e10ce43f214d64651ab43b00902d Mon Sep 17 00:00:00 2001 From: barry3406 Date: Thu, 9 Apr 2026 05:43:59 -0700 Subject: [PATCH] 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. --- surfsense_web/components/assistant-ui/assistant-message.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/surfsense_web/components/assistant-ui/assistant-message.tsx b/surfsense_web/components/assistant-ui/assistant-message.tsx index 097197107..85b6eda86 100644 --- a/surfsense_web/components/assistant-ui/assistant-message.tsx +++ b/surfsense_web/components/assistant-ui/assistant-message.tsx @@ -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,