mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 14:06:32 -04:00
The pull request icons in the branches panel come from the remotes, so a branches render that happens before the remotes are in the model shows no icons, and the render that follows once the remotes land has to add them. The branches refresh already waits for the worktrees for exactly this reason. Wait for the remotes as well. They are read from the git config before their branches are loaded, so the wait is over well before the branch load itself is done, and the first render of the branch list shows the icons no matter which of the two finishes first. Start the remotes scope before the branches scope, so that an early return in performRefresh can't leave the branches refresh waiting for a scope that was never started. The worktrees scope goes first for the same reason. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>