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
fix(desktop): macOS development permission guide crashes or cannot grant access #1919
Opening the guided Accessibility or Screen Recording grant flow can terminate the unpackaged Electron app on macOS. The process exits with a native SIGTRAP rather than a catchable JavaScript exception.
Environment
Maka Agent commit: 79fd71f6
Electron: 43.1.1
macOS: 13.4.1 (22F82)
Hardware: Mac14,9 (Apple silicon)
Run mode: development / unpackaged Electron
Reproduction
Start the desktop app in development mode.
Open the Browser Use / Computer Use authorization flow.
Click the guided authorization entry for Accessibility or Screen Recording.
Electron exits while the permission overlay is opening or beginning the drag interaction.
Evidence and likely cause
The macOS crash reports show EXC_BREAKPOINT (SIGTRAP) on a ThreadPoolForegroundWorker. There is no JavaScript exception to catch.
The permission overlay resolves the development bundle to node_modules/electron/dist/Electron.app and invokes app.getFileIcon() in two places: while preparing the overlay icon and as a fallback when starting the drag. Reading that native bundle icon is the common trigger observed immediately before both crashes.
Proposed behavior
Keep native bundle icon loading for packaged builds, where the target is the real Maka.app bundle.
Skip app.getFileIcon() for unpackaged development builds.
Continue dragging Electron.app in development mode with an empty decorative drag image, preserving the correct macOS TCC identity.
A focused fix and regression test will be submitted in a linked PR.
The proposed crash guard prevents the original native exit, but end-to-end development authorization is not yet successful.
After dragging the development bundle into System Settings and enabling the newly added Electron entry, Maka continues to report that it is waiting for permission. A probe launched with the exact same Electron executable reports:
Electron.app: code has no resources but signature indicates they must be present
This means the current PR fixes the app.getFileIcon() crash but does not make the unpackaged development TCC flow usable. The PR has been converted to Draft to prevent premature merging.
The complete development solution should provide and run a stable, validly signed development app bundle (for example Maka Dev.app) and drag that same bundle into System Settings. The running executable, displayed bundle, and TCC identity must remain identical. It should then be verified end-to-end for both Accessibility and Screen Recording, including the required restart for Screen Recording.
The complete development flow is now verified on the affected macOS device.
Two conditions were required beyond the initial native-icon crash guard:
Generate a stable, validly ad-hoc-signed Maka Dev.app with bundle ID com.maka.dev.
Start it through macOS LaunchServices rather than executing the bundle's internal Electron binary directly from a terminal.
With both conditions in place, System Settings showed Maka Dev and the running app changed from “waiting for permission” to granted. The PR now automates this for both npm run dev and the desktop npm start command, caches the generated bundle until Electron changes, ignores generated artifacts, preserves Vite HMR, and documents the workflow.
changed the title [-]fix(desktop): permission grant guide crashes unpackaged Electron on macOS[/-][+]fix(desktop): macOS development permission guide crashes or cannot grant access[/+]on Aug 2, 2026
Activity
liugddx commentedon Aug 2, 2026
Follow-up from real-device verification
The proposed crash guard prevents the original native exit, but end-to-end development authorization is not yet successful.
After dragging the development bundle into System Settings and enabling the newly added Electron entry, Maka continues to report that it is waiting for permission. A probe launched with the exact same Electron executable reports:
{ "executablePath": "/Users/liugddx/code/maka-agent/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron", "accessibility": false, "screen": "denied" }Bundle signature verification also fails:
This means the current PR fixes the
app.getFileIcon()crash but does not make the unpackaged development TCC flow usable. The PR has been converted to Draft to prevent premature merging.The complete development solution should provide and run a stable, validly signed development app bundle (for example
Maka Dev.app) and drag that same bundle into System Settings. The running executable, displayed bundle, and TCC identity must remain identical. It should then be verified end-to-end for both Accessibility and Screen Recording, including the required restart for Screen Recording.liugddx commentedon Aug 2, 2026
Verified solution
The complete development flow is now verified on the affected macOS device.
Two conditions were required beyond the initial native-icon crash guard:
Maka Dev.appwith bundle IDcom.maka.dev.With both conditions in place, System Settings showed
Maka Devand the running app changed from “waiting for permission” to granted. The PR now automates this for bothnpm run devand the desktopnpm startcommand, caches the generated bundle until Electron changes, ignores generated artifacts, preserves Vite HMR, and documents the workflow.[-]fix(desktop): permission grant guide crashes unpackaged Electron on macOS[/-][+]fix(desktop): macOS development permission guide crashes or cannot grant access[/+]