Skip to content

feat(darwin): comprehensive macOS platform improvements#71

Merged
dbfx merged 2 commits intomainfrom
feat/macos-improvements
Mar 24, 2026
Merged

feat(darwin): comprehensive macOS platform improvements#71
dbfx merged 2 commits intomainfrom
feat/macos-improvements

Conversation

@dbfx
Copy link
Contributor

@dbfx dbfx commented Mar 24, 2026

Summary

  • Fix file dialogs on macOS: Open as standalone panels instead of sheets — sidebar items (Desktop, Documents, etc.) are unresponsive in sheet mode
  • Dock icon & clipboard shortcuts: Show Dock icon when relaunched as root via osascript; add Edit menu so Cmd+C/V/X work in the frameless window
  • App size calculation: Use du -sk to compute real installed app sizes in the debloater (batched in groups of 50)
  • Batched elevation prompts: New elevatedBatch() helper combines multiple admin commands into a single macOS password dialog
  • ALF firewall restart: Restart the ALF daemon after stealth mode / signed app changes so they take effect immediately on Sonoma+
  • Core dump check: Switch from launchctl limit to sysctl kern.coredump for more reliable detection
  • Remove broken "Recent Files" setting: The Finder FXRecentFolders key didn't reliably control recent file tracking
  • Large file finder: Pre-check directory readability (TCC), send immediate progress event, fix UI rendering when progress is null
  • Threat monitor: Auto-refresh every 30s so "last scanned" timestamps stay current
  • Sidebar: Hide drivers page when the feature flag is disabled

Test plan

  • Updated commands.test.ts with tests for du-based size calculation, du failure handling, and partial output parsing
  • Verify file picker dialogs work correctly on macOS (standalone panel, not sheet)
  • Verify Cmd+C/V/X clipboard shortcuts work in the frameless window
  • Test privacy settings that use elevatedBatch (Chrome/Firefox telemetry toggles)
  • Confirm firewall stealth mode & signed app changes take effect without manual restart
  • Test large file finder on a TCC-restricted directory
  • Verify threat monitor page auto-refreshes

🤖 Generated with Claude Code

Fix multiple macOS-specific issues: standalone file dialogs instead of
broken sheet mode, Dock icon visibility when relaunched as root, clipboard
shortcuts via Edit menu, app size calculation with du, batched elevation
prompts, ALF daemon restart after firewall changes, core dump check via
sysctl, TCC access pre-check in large file finder, scanning progress UI
fixes, threat monitor auto-refresh, and sidebar feature gating for drivers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 148ee03ea0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Keep the default appMenu role (Quit, Hide, About, etc.) instead of
replacing the entire application menu with only an Edit submenu.
This restores Cmd+Q and Cmd+H which were inadvertently removed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dbfx dbfx merged commit 2362321 into main Mar 24, 2026
8 checks passed
@dbfx dbfx deleted the feat/macos-improvements branch March 24, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant