Skip to content

Make app search work immediately after login - #337

Merged
ospfranco merged 2 commits into
ospfranco:mainfrom
memit0:main
Oct 7, 2026
Merged

ospfranco merged 2 commits into
ospfranco:mainfrom
memit0:main

Conversation

@memit0

@memit0 memit0 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Make app search work immediately after login

After login, searching for apps (e.g. "mail") returns nothing for a few seconds. That's because the app list starts empty and is filled by a scan running at QOS_CLASS_BACKGROUND, which macOS delays while the system is busy at login.

Save the app list in state.json and load it on startup, so search works right away. The normal scan still runs and replaces it when it finishes.
Run the app scan at QOS_CLASS_USER_INITIATED instead of QOS_CLASS_BACKGROUND.

To test: launch once so the list is saved, reboot, then search "mail" right after login.

claude and others added 2 commits October 7, 2026 03:49
Cache the app list in state.json and restore it on hydrate so search
works before the first scan finishes; the scan still replaces it.
Run the app scan at QOS_CLASS_USER_INITIATED so login-time load
doesn't starve it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SLufAde5TyGBVZy6dXjShQ
Restore cached apps on launch for immediate search
@ospfranco

Copy link
Copy Markdown
Owner

Ahhh nice, this was so freaking confusing for so long. I had no idea, thanks!

@ospfranco
ospfranco merged commit c3ce5c2 into ospfranco:main Oct 7, 2026
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.

3 participants