The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 16:30 UTC
fix(mobile): use tryOpenExternalUrl for markdown links in ThreadFeed (#5872)
Co-authored-by: codex <codex@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
mohamedmastouri-hue committed
Aug 15, 2026 at 11:44 UTC
b277cc65e045899e7aa941e92d04f2b4996f27bb
1 file changed
+4
-4
apps/mobile/src/features/threads/ThreadFeed.tsx
+4
-4
@@ -28,7 +28,6 @@ import {
28
import {
29
ActivityIndicator,
30
Image,
31
- Linking,
31
Platform,
32
type LayoutChangeEvent,
33
type NativeScrollEvent,
@@ -51,6 +50,7 @@ import { IOS_NAV_BAR_HEIGHT } from "../../lib/layoutMetrics";
50
import { useFontFamily } from "../../lib/useFontFamily";
51
import { scopedThreadKey } from "../../lib/scopedEntities";
52
import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";
53
+import { tryOpenExternalUrl } from "../../lib/openExternalUrl";
54
import { hasWideMarkdownBlock } from "../../lib/wideMarkdownBlocks";
55
import {
56
hasNativeSelectableMarkdownText,
@@ -283,7 +283,7 @@ const MarkdownExternalLink = memo(function MarkdownExternalLink(props: {
283
<NativeText
284
className="font-sans"
285
onPress={() => {
286
- void Linking.openURL(props.href);
286
+ void tryOpenExternalUrl(props.href, "markdown-link");
287
}}
288
style={{
289
color: props.color,
@@ -613,7 +613,7 @@ function useMarkdownStyles(onLinkPress: (href: string) => void): MarkdownStyleSe
613
onPress={
614
linkHref
615
? () => {
616
- void Linking.openURL(linkHref);
616
+ void tryOpenExternalUrl(linkHref, "markdown-link");
617
}
618
: undefined
619
}
@@ -1436,7 +1436,7 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
1436
}
1437
1438
if (presentation.href) {
1439
- void Linking.openURL(presentation.href);
1439
+ void tryOpenExternalUrl(presentation.href, "markdown-link");
1440
}
1441
},
1442
[props.environmentId, props.threadId, props.workspaceRoot, navigation],