Repository navigation
Make app search work immediately after login - #337
Merged
Merged
Conversation
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
Owner
|
Ahhh nice, this was so freaking confusing for so long. I had no idea, thanks! |
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.
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.