Skip to content

fix: prevent gallery-detail crash when browser launch fails#28

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

fix: prevent gallery-detail crash when browser launch fails#28
cursor[bot] wants to merge 1 commit intomainfrom
cursor/critical-bug-inspection-92ac

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor bot commented Apr 2, 2026

Summary

  • Fix a high-severity crash in TUI gallery detail when pressing o to open in browser.
  • Add a safe browser launcher helper that catches launch failures and returns a typed result.
  • Update gallery detail to handle launcher errors and show a user-facing message instead of triggering an unhandled rejection.
  • Add unit tests covering success/failure paths for browser launch behavior.

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