From 7971334b3711ea0b21fbf340075e64dc8750a486 Mon Sep 17 00:00:00 2001 From: Greg Pstrucha <875316+Gricha@users.noreply.github.com> Date: Sat, 10 Jan 2026 15:33:24 -0800 Subject: [PATCH] Fix links opening twice in mobile chat Return false from onLinkPress to prevent react-native-markdown-display from also opening the URL after we handle it manually. Co-Authored-By: Claude Opus 4.5 --- mobile/src/screens/SessionChatScreen.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/src/screens/SessionChatScreen.tsx b/mobile/src/screens/SessionChatScreen.tsx index bde62cd0..d96b9d11 100644 --- a/mobile/src/screens/SessionChatScreen.tsx +++ b/mobile/src/screens/SessionChatScreen.tsx @@ -253,7 +253,7 @@ function renderPartsWithPairedTools(parts: MessagePart[], colors: ThemeColors) { { Linking.openURL(url).catch(() => {}); return true }} + onLinkPress={(url) => { Linking.openURL(url).catch(() => {}); return false }} > {trimmedContent} @@ -295,7 +295,7 @@ function MessageBubble({ message, colors }: { message: ChatMessage; colors: Them { Linking.openURL(url).catch(() => {}); return true }} + onLinkPress={(url) => { Linking.openURL(url).catch(() => {}); return false }} > {trimmedContent} @@ -315,7 +315,7 @@ function MessageBubble({ message, colors }: { message: ChatMessage; colors: Them { Linking.openURL(url).catch(() => {}); return true }} + onLinkPress={(url) => { Linking.openURL(url).catch(() => {}); return false }} > {trimmedContent}