From 9bd5288af816038c24f6400d9ae29121473b492b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 4 Apr 2026 11:03:37 +0000 Subject: [PATCH] fix: handle browser open failures in gallery detail 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..6ad595d 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) => { + setError(err instanceof Error ? err.message : 'Failed to open in browser') + }) } })