╭ changed ──────╮ │src/ui/Repo.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │107 .repo_refs => |r| r.after, │ │108 else => 0, │ │109 }; │ │110 - // the issues tab's tag filter and the issue its window is rooted at. │ │110 + // the issues tab's tag filter, the issue its window is rooted at, and the│ │111 + // view it shows. │ │112 const issues_tag: []const u8 = switch (route) { │ │113 .repo_issues => |i| i.tag.slice(), │ │114 else => "", │ ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │117 .repo_issues => |i| i.selected.slice(), │ │118 else => "", │ │119 }; │ │120 + const issues_view: ui.RoutablePage.IssuesView = switch (route) { │ │121 + .repo_issues => |i| i.view, │ │122 + else => .open, │ │123 + }; │ │124 │ │125 // where the on-disk repo lives (null keeps the views' empty fallback), plus│ │126 // the repo and owner-name metadata the header shows. local mode already │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │182 try Files.init(repo_kind, opened.self_repo_opts, arena, opened, io, gpa, rf.identity, requested_ref_or_oid, requested_ref_value, files_dir, files_after),│ │183 try Commits.init(repo_kind, opened.self_repo_opts, arena, opened, io, gpa, rf.identity, requested_ref_or_oid, requested_ref_value, commits_after), │ │184 try Refs.init(repo_kind, opened.self_repo_opts, arena, opened, io, gpa, rf.identity, refs_kind, refs_after), │ │180 - try Issues.init(repo_kind, opened.self_repo_opts, arena, opened, io, is_local, rf.identity, issues_tag, issues_selected), │ │185 + try Issues.init(repo_kind, opened.self_repo_opts, arena, opened, io, is_local, rf.identity, issues_tag, issues_selected, issues_view), │ │186 }; │ │187 }, │ │188 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │194 try Files.emptyResult(aa, rf.identity, requested_ref_or_oid orelse .branch, requested_ref_value, files_dir),│ │195 try Commits.emptyResult(aa, rf.identity, requested_ref_or_oid orelse .branch, requested_ref_value), │ │196 try Refs.emptyResult(arena, rf.identity, refs_kind, refs_after), │ │192 - try Issues.emptyResult(aa, rf.identity, issues_tag, issues_selected), │ │197 + try Issues.emptyResult(aa, rf.identity, issues_tag, issues_selected, issues_view), │ │198 }; │ │199 }; │ │200 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │334 .repo_refs => self.session.data.current_page = .{ .repo_refs = .{ .name = self.data.identity, .kind = self.data.refs.kind, .after = self.data.refs.after } }, │ │335 // the issues tab mirrors this page's tag filter (issue urls │ │336 // themselves never carry the tag). │ │332 - .repo_issues => self.session.data.current_page = ui.RoutablePage.repoIssuesRoute(self.data.identity.slice(), self.data.issues.tag, "") orelse self.session.data.current_page, │ │337 + .repo_issues => self.session.data.current_page = ui.RoutablePage.repoIssuesRoute(self.data.identity.slice(), .open, self.data.issues.tag, "") orelse self.session.data.current_page,│ │338 .home_settings => self.session.data.current_page = .{ .repo_settings = self.data.identity }, │ │339 .home_auth => self.session.data.current_page = .{ .repo_auth = self.data.identity }, │ │340 // the quit tab is tty-only and not a route, so leave current_page │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯