Before submitting#
Area#
apps/mobile
Steps to reproduce#
- Open a thread that holds a markdown link with a scheme the device cannot open.
- Tap the link.
- Read the app log.
Expected behavior#
The app logs ExternalUrlOpenError. tryOpenExternalUrl handles this case, and it already declares a markdown-link target:
export async function tryOpenExternalUrl(url: string, target: ExternalUrlTarget): Promise<boolean>
FileMarkdownPreview.tsx calls it on lines 60 and 191:
void tryOpenExternalUrl(href, "markdown-link");
Actual behavior#
Nothing opens, and the log stays empty. ThreadFeed.tsx opens markdown links with three direct calls:
void Linking.openURL(props.href);
void Linking.openURL(linkHref);
void Linking.openURL(presentation.href);
Linking.openURL rejects when the device has no handler for the URL. The void operator discards that rejection. The two markdown renderers therefore disagree. The file preview reports the failure. The thread feed stays silent.
Impact#
Minor bug or occasional failure
Version or commit#
main @ 1a003e383
Environment#
apps/mobile, both platforms. Android reaches the same code through the fallback in ThreadFeed.tsx:1062.
Logs or stack traces#
(no output)
The empty log is the defect. A guarded call site prints this instead:
Failed to open markdown-link URL with the https scheme.
Screenshots, recordings, or supporting files#
No response
Workaround#
None inside the app. Copy the link text and open it by hand.