From d7e5c00ee9d3348d55b07181d87cef5586a2cb61 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 27 Mar 2026 11:25:08 +0000 Subject: [PATCH] fix: handle gallery browser open failures without crashing Co-authored-by: Dylan Boudro --- src/screens/GalleryDetail.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screens/GalleryDetail.tsx b/src/screens/GalleryDetail.tsx index 5953137..dbb14de 100644 --- a/src/screens/GalleryDetail.tsx +++ b/src/screens/GalleryDetail.tsx @@ -49,7 +49,9 @@ export default function GalleryDetail({ client, generationId, back }: Props) { if (confirming) return if (input === 'd') setConfirming(true) if (input === 'o' && generation) { - open(`https://www.pixelmuse.studio/g/${generation.id}`) + void open(`https://www.pixelmuse.studio/g/${generation.id}`).catch((err: unknown) => { + setError(err instanceof Error ? err.message : 'Failed to open browser') + }) } })