Skip to content

fix: Safari doesn't appear in app root search on macOS Sequoia#43

Merged
pablopunk merged 1 commit into
mainfrom
fractal-nvm-safari-does-not-appear-app-root-search-fc3700
Jun 19, 2026
Merged

fix: Safari doesn't appear in app root search on macOS Sequoia#43
pablopunk merged 1 commit into
mainfrom
fractal-nvm-safari-does-not-appear-app-root-search-fc3700

Conversation

@pablopunk

Copy link
Copy Markdown
Owner

Problem

Safari did not appear in the root search app list on macOS Sequoia (15.x).

Root cause

On macOS Sequoia, /Applications/Safari.app is a symlink to /System/Cryptexes/App/System/Applications/Safari.app. The app scanner in scanMacApps used Dirent.isDirectory() to filter entries, but Node's isDirectory() uses lstat semantics — it returns false for symlinks, even ones pointing to directories. Safari was silently filtered out before the .app check.

Fix

Replace Dirent type checks (isDirectory()) with fs.stat() which follows all filesystem indirection (symlinks, firmlinks, etc.). This answers the correct architectural question: does resolving this path yield a directory? — regardless of the immediate filesystem entry type.

Applied to both .app detection and recursion into subdirectories, making the scanner robust against any future indirection types Apple introduces.

Before After
Apps found in /Applications 97 98
Safari

Verification

  • pnpm build
  • pnpm typecheck
  • All 81 frontend + 41 backend tests pass ✓
  • Live verification: fs.stat correctly resolves the Safari symlink

@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nvm Ready Ready Preview, Comment Jun 19, 2026 10:58am

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@pablopunk, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 23 minutes and 33 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 17e3fbf9-4742-46f8-80a8-4d6237520c92

📥 Commits

Reviewing files that changed from the base of the PR and between 5ce6e5a and 6f0ae3c.

📒 Files selected for processing (1)
  • src/electron/os.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

…pe checks

On macOS Sequoia, Safari.app at /Applications is a symlink to
/System/Cryptexes/App/System/Applications/Safari.app. Node's
Dirent.isDirectory() returns false for symlinks (lstat semantics),
so the old check !entry.isDirectory() silently dropped it during
app scanning.

Replace Dirent type checks with fs.stat() which follows all
filesystem indirection (symlinks, firmlinks, etc.) and answers
the correct question: does resolving this path yield a directory?
Applied to both .app detection and recursion into subdirectories.
@pablopunk
pablopunk force-pushed the fractal-nvm-safari-does-not-appear-app-root-search-fc3700 branch from f7d8bb1 to 6f0ae3c Compare June 19, 2026 10:57
@pablopunk
pablopunk merged commit 125233b into main Jun 19, 2026
8 checks passed
@pablopunk
pablopunk deleted the fractal-nvm-safari-does-not-appear-app-root-search-fc3700 branch June 19, 2026 11:03
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