feat(macos): Typeless-style permission onboarding#4
Merged
Conversation
Rework the first-run permission step so it stops treating screen recording like the other two permissions. Screen recording is the only one that needs an app restart to take effect (CGPreflight caches the old value) and the only one that's optional (microphone-only mode covers the rest), yet it was required and shown identically — users granted it, returned, saw a red X, and got stuck. - Microphone + speech recognition are required (standard prompts, instant); onboarding proceeds once those two are granted - Screen recording is marked Recommended/optional with a muted icon; skipping it falls back to microphone-only capture - After requesting screen recording, show a 'Restart to apply' button that relaunches the app, instead of a permanently-red row - requiredPermissionsGranted gates progress on the two essential permissions Why not just copy Typeless: it only needs the microphone, so its flow is trivially clean. LCT must capture system audio, which on macOS requires the restart-prone screen-recording permission — so the fix is making that one permission's guidance honest, not hiding it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The first-run permission step treated all three permissions identically, but screen recording is special on macOS: it's the only one that needs an app restart to take effect (
CGPreflightcaches the stale value) and the only one that's optional (microphone-only mode covers the rest). Users granted it, came back, saw a red ✗, and got stuck — the "ugly" flow.Change
requiredPermissionsGrantedgates progress on the two essential permissions only.Why not just copy Typeless
Typeless only needs the microphone, so its flow is trivially clean. LCT must capture system audio, which on macOS requires the restart-prone screen-recording permission. The fix is making that permission's guidance honest (optional + restart prompt), not hiding it.
Verified
🤖 Generated with Claude Code