Skip to content

fix: load ranking on startup - #322

Merged
unsecretised merged 1 commit into
MystikoLab:masterfrom
gamedevCloudy:fix/load-ranking-on-startup
Nov 4, 2026
Merged

unsecretised merged 1 commit into
MystikoLab:masterfrom
gamedevCloudy:fix/load-ranking-on-startup

Conversation

@gamedevCloudy

Copy link
Copy Markdown
Contributor

Summary:

After startup, I would get macOS services as top recommendations. To launch apps I frequently use, I had to type out their full names. This has only been happening on my work machine - after a fresh launch.

Root Cause:

  • I studied how it would load apps at startup
  • I found that rankings are stored in ranking.toml and the search index.
  • They're read from the file but not applied to the index, and are lost when the app list rebuilds
  • Example:
    App ranking:
ghostty: 1
brave: 1

becomes:

ghostty: 0 
brave: 0 

Changes:

  • src/app/tile/elm.rs -> queue load ranking when tile exists
  • src/app/tile/update.rs -> after app index rebuild, copy ranks again

How to test:

  • Quit / Fresh launch Rustcast
  • type an app you use; it will rank lower than it's supposed to
Screenshot 2026-11-04 at 7 10 37 PM
  • then, launch it once; it will set its preference to 1
  • now, if you don't reload config - and still search - it will stay lower
  • hit SUPER+R, retype, and it will now be the first one
Screenshot 2026-11-04 at 7 11 13 PM

Checklist:

  • cargo fmt
  • cargo build
  • screenshot attached

@unsecretised unsecretised left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk.. might take me a few weeks to review all these changes..

Jokes aside it's funny this slipped past..

@unsecretised
unsecretised merged commit 954a095 into MystikoLab:master Nov 4, 2026
2 checks passed
@unsecretised

Copy link
Copy Markdown
Collaborator

Btw, I'd recommend switching to Floe which has more features than Rustcast, and is something I'm actively contributing to.

@gamedevCloudy

Copy link
Copy Markdown
Contributor Author

I had been installing and updating only via brew. So didn't realise it had gone out of support.
That also explains the fun bits of commit messages lol.

Will try out Floe!

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.

2 participants