Skip to content

fix: trigger real macOS permission requests from permission checker#8

Merged
blueberrycongee merged 1 commit intomainfrom
codex/fix-issue5-permission-trigger
Feb 20, 2026
Merged

fix: trigger real macOS permission requests from permission checker#8
blueberrycongee merged 1 commit intomainfrom
codex/fix-issue5-permission-trigger

Conversation

@blueberrycongee
Copy link
Copy Markdown
Owner

Summary

  • replace the permission-checker action flow from "open settings only" to "request permission first, then route to settings when needed"
  • add a new IPC endpoint (request-capture-permission-access) that handles screen/camera/microphone/accessibility/input-monitoring with target-specific behavior
  • update permission checker UI action labels so not-determined states show "Request Access" and add test coverage for action-mode resolution

Behavior changes

  • screen: attempts a lightweight screen-source probe to trigger macOS consent flow, then refreshes status
  • camera / microphone: calls systemPreferences.askForMediaAccess when status is not-determined
  • accessibility: calls isTrustedAccessibilityClient(true) to trigger system prompt path
  • input-monitoring: opens the corresponding system settings page (manual-check path)

Validation

  • npm test
  • npx vitest run src/lib/permissions/capturePermissions.test.ts src/lib/permissions/permissionActions.test.ts src/lib/screenCaptureAccess.test.ts src/lib/permissions/nativeRecorderErrors.test.ts

Fixes #5

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.

[Bug]: 权限问题,没有插入到系统中

1 participant