You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS: URL scheme handler lost after restart (unsigned app bundle) #22
After running worktree setup, the WorktreeRunner.app bundle is installed at ~/Applications/WorktreeRunner.app and lsregister registers the worktree:// URL scheme. However, the app bundle is not code-signed, so macOS Gatekeeper removes or invalidates it — typically after a reboot or a Launch Services database reset — causing the worktree:// scheme to stop working and macOS to show the "No application set to open this URL" dialog.
Steps to Reproduce
Run worktree setup
Confirm worktree scheme status reports installed
Reboot the machine
Click a worktree:// deep link
macOS shows "There is no application set to open the URL"
Root Cause
osacompile produces an unsigned .app bundle. Gatekeeper quarantines or evicts unsigned app bundles from ~/Applications/ over time.
Possible Fixes
Ad-hoc code sign the generated bundle after osacompile using codesign --sign - --force --deep (ad-hoc signing satisfies Gatekeeper for locally-built tools without requiring a paid Apple Developer certificate)
Re-register on login via a launchd plist in ~/Library/LaunchAgents/ that runs worktree scheme install at login, so the scheme is re-registered automatically if it gets evicted
Both approaches can be combined for maximum resilience
Activity
github-actions commentedon Feb 23, 2026
A workspace is ready for this issue.
Powered by Worktree · Install
chore: remove centy issue #21 (moved to GitHub issue #22)
fix: ad-hoc codesign app bundle and install LaunchAgent for scheme pe…
fix: ad-hoc codesign app bundle and install LaunchAgent for scheme pe…
chore: add logo integration issues (#22–#26)
chore(centy): close issue #22 - logo asset already added to repo
Merge pull request #33 from worktree-io/issue-22
chore(centy): close issue #22 - logo asset already added to repo