Skip to content

fix: prevent gallery detail crash when browser open fails#30

Draft
cursor[bot] wants to merge 1 commit intomainfrom
cursor/critical-bug-inspection-5c58
Draft

fix: prevent gallery detail crash when browser open fails#30
cursor[bot] wants to merge 1 commit intomainfrom
cursor/critical-bug-inspection-5c58

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor bot commented Apr 4, 2026

Summary

  • fix unhandled rejection in GalleryDetail when pressing o to open a generation in browser
  • catch open() failures and surface an in-app error instead of crashing the process

Bug

Pressing o in gallery detail called open(...) without handling promise rejection.
In environments where opening a browser fails (headless sessions, missing opener), Node treats this as an unhandled rejection and exits.

Validation

  • pnpm typecheck
  • pnpm build && pnpm test
Open in Web View Automation 

Co-authored-by: Dylan Boudro <starmorph@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant