Repository navigation
Update browser bookmarks extension - #22778
Conversation
commented
Nov 10, 2025
|
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. |
left a comment
There was a problem hiding this comment.
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
commented
Nov 10, 2025
|
Published to the Raycast Store: |
commented
Nov 10, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool