From 77652863c4c152fce1d2556db15c5ce3b9702bdf Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 21 May 2026 11:54:45 +0200 Subject: [PATCH] Refresh pull requests after a manual fetch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The background fetch path already includes PULL_REQUESTS in its post-fetch refresh scope, but the manual fetch from the files view doesn't. As far as I can tell that's an oversight from when PULL_REQUESTS was added — there's no reason the two paths should differ. Align them so both refresh PRs after fetching. This also sets up the next commit to extract a shared helper for the post-fetch refresh. Co-Authored-By: Claude Opus 4.7 (1M context) --- pkg/gui/controllers/files_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gui/controllers/files_controller.go b/pkg/gui/controllers/files_controller.go index e75a5ee3f..1513a324e 100644 --- a/pkg/gui/controllers/files_controller.go +++ b/pkg/gui/controllers/files_controller.go @@ -1348,7 +1348,7 @@ func (self *FilesController) fetch() error { return errors.New(self.c.Tr.PassUnameWrong) } - self.c.Refresh(types.RefreshOptions{Scope: []types.RefreshableView{types.BRANCHES, types.COMMITS, types.REMOTES, types.TAGS}, Mode: types.SYNC}) + self.c.Refresh(types.RefreshOptions{Scope: []types.RefreshableView{types.BRANCHES, types.COMMITS, types.REMOTES, types.TAGS, types.PULL_REQUESTS}, Mode: types.SYNC}) if err == nil { err = self.c.Helpers().BranchesHelper.AutoForwardBranches()