Add markdown preview failure fallback

Co-authored-by: Codex <[email protected]>
Co-authored-by: codex <[email protected]>
This commit is contained in:
authored and Julius Marminge committed 2026-06-20 19:01:23 -07:00
1 parent 3be757f51a
commit 360747433f
1 file changed
+3 -1
+3 -1
View File
@@ -1065,6 +1065,7 @@ const MarkdownFileLink = memo(function MarkdownFileLink({
description: error instanceof Error ? error.message : "An error occurred.",
}),
);
handleOpenInFilePreview();
} catch (cause) {
reportMarkdownActionFailure(
{ operation: "open-file-in-browser", target: targetPath },
@@ -1077,9 +1078,10 @@ const MarkdownFileLink = memo(function MarkdownFileLink({
description: cause instanceof Error ? cause.message : "An error occurred.",
}),
);
handleOpenInFilePreview();
}
})();
}, [onOpenInBrowser, targetPath]);
}, [handleOpenInFilePreview, onOpenInBrowser, targetPath]);
const handleCopy = useCallback(
(value: string, title: string) => {