Skip to content

Stop asking for Desktop access on launch - #21

Merged
pitis merged 3 commits into
mainfrom
fix/first-launch-hang
Nov 8, 2026
Merged

pitis merged 3 commits into
mainfrom
fix/first-launch-hang

Conversation

@pitis

@pitis pitis commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Perch no longer touches the Desktop folder until you turn screenshots on.

  • Screenshot capture is now off by default. Turning it on, from Clips or Settings, is what triggers the macOS prompt.
  • The folder access also moved off the main thread. On the first real install the app sat for at least 17 seconds with no window or socket and its main thread stuck in launch. In later tests launched the same way, the old build failed to come up once and came up normally once, so that cause isn't confirmed. Blocking file access doesn't belong on the main thread either way.

Checked: logic tests pass, and the installed app comes up with its window and socket and no Desktop files open.

Not checked: turning the setting on and answering the prompt, to avoid more prompts during testing. That's tracked in #7.

Also adds docs: AGENTS.md (commands, architecture, decisions and testing rules), CLAUDE.md (imports it) and product.md (which features are done and which aren't).

pitis added 2 commits November 7, 2026 02:15
The first touch of the Desktop folder blocks until the permission prompt is
answered. Doing it on the main thread hung the app before the notch or the MCP
socket came up. Only a real first launch hits this, because tests use a throwaway home.
Watching the screenshot folder is what makes macOS prompt for Desktop access, and
that prompt came up on launch with no explanation. Capture is now off by default,
with a button in Clips and the existing toggle in Settings to turn it on.
@pitis pitis changed the title Don't freeze on launch while macOS asks for Desktop access Stop asking for Desktop access on launch Nov 7, 2026
AGENTS.md holds the commands, architecture, decisions and testing rules, and
CLAUDE.md imports it. product.md lists which features are done and which aren't.
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.

1 participant