Skip to content

Update browser bookmarks extension - #22778

Merged
raycastbot merged 2 commits into
raycast:mainfrom
ridemountainpig:browser-bookmarks-fix
Nov 10, 2025
Merged

raycastbot merged 2 commits into
raycast:mainfrom
ridemountainpig:browser-bookmarks-fix

Conversation

@ridemountainpig

Copy link
Copy Markdown
Contributor

Description

Screencast

Checklist

@ghost ghost added extension fix / improvement Label for PRs with extension's fix improvements extension: browser-bookmarks Issues related to the browser-bookmarks extension platform: macOS OP is contributor The OP of the PR is a contributor of the extension labels Nov 10, 2025

ghost commented Nov 10, 2025

Copy link
Copy Markdown

Thank you for your contribution! 🎉

🔔 @thomaslombart @sasivarnan @ahpatel @chupi33 @tleo19 @jum8ys @selfish @theherk @zhsks311 @daniel-nagy @gewoonseba you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

You can expect an initial review within five business days.

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Greptile Summary

This PR fixes a critical bug in the browser bookmarks extension where the application would crash with ENOENT errors when attempting to read directories that don't exist or are inaccessible. The issue specifically affected ChatGPT Atlas bookmarks as reported in issue #22771. The fix adds robust error handling to directory scanning operations in both Firefox and Chromium-based browser profile detection logic.

The changes wrap readdirSync calls in try-catch blocks across two key hooks: useFirefoxBookmarks.ts and useChromiumBookmarks.ts. When directory reading fails, the code gracefully excludes problematic profiles by returning safe fallback values (empty arrays or false), allowing the extension to continue functioning with available profiles instead of crashing entirely. This defensive programming approach improves the overall robustness of the extension when dealing with filesystem operations that can fail due to missing directories, permission issues, or corrupted profiles.

Important Files Changed

Filename Score Overview
extensions/browser-bookmarks/CHANGELOG.md 5/5 Added new bug fix entry at top with correct template format
extensions/browser-bookmarks/src/hooks/useFirefoxBookmarks.ts 5/5 Added try-catch around profile directory reading to prevent crashes
extensions/browser-bookmarks/src/hooks/useChromiumBookmarks.ts 5/5 Added comprehensive error handling for directory scanning operations

Confidence score: 5/5

  • This PR is safe to merge with minimal risk as it only adds defensive error handling without changing core functionality
  • Score reflects well-targeted bug fix with proper error handling patterns and clear testing mentioned in PR description
  • No files require special attention as all changes follow consistent error handling patterns

3 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@ghost ghost self-assigned this Nov 10, 2025

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@ghost
ghost merged commit 04d306d into raycast:main Nov 10, 2025

ghost commented Nov 10, 2025

Copy link
Copy Markdown

ghost commented Nov 10, 2025

Copy link
Copy Markdown

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@ghost
ghost deleted the browser-bookmarks-fix branch November 10, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: browser-bookmarks Issues related to the browser-bookmarks extension extension fix / improvement Label for PRs with extension's fix improvements OP is contributor The OP of the PR is a contributor of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Browser Bookmarks] Error when searching for ChatGPT Atlas bookmarks

3 participants