From 0d22d6f6aefe98ad5e0141696b0f37347834891d Mon Sep 17 00:00:00 2001 From: James Date: Sat, 22 Aug 2026 02:04:16 +0100 Subject: [PATCH] fix(mobile): stop silently swallowing taps on out-of-workspace file links --- apps/mobile/src/features/threads/ThreadFeed.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/mobile/src/features/threads/ThreadFeed.tsx b/apps/mobile/src/features/threads/ThreadFeed.tsx index f00736772766..18d7916f87c9 100644 --- a/apps/mobile/src/features/threads/ThreadFeed.tsx +++ b/apps/mobile/src/features/threads/ThreadFeed.tsx @@ -27,6 +27,7 @@ import { } from "react-native-nitro-markdown"; import { ActivityIndicator, + Alert, Image, Platform, type LayoutChangeEvent, @@ -1403,7 +1404,15 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) { path: relativePath.split("/").filter((segment) => segment.length > 0), ...(presentation.line ? { line: String(presentation.line) } : {}), }); + return; } + // The link renders as a file (icon + label) but points outside the + // workspace, so there is nothing on-device to navigate to. Say so + // instead of swallowing the tap. + Alert.alert( + "Can't open this file", + "It lives outside the project folder, so it isn't available here.", + ); return; }