Repository navigation
Description
Summary
I imported five local repos into one local host. Two of them are fork-style checkouts: origin points at their own GitHub repo, upstream points at the parent repo (bun_root). Orca derives the project identity from upstream, so three folders collapse into a single project.
In the tasks page (GitHub source) that project shows up as one flat entry in the project/source combobox. The per-repo "Choose task source" flyout exists in the code but is only rendered when a group's sources span more than one host. On a single-host profile it never appears, so the individual repos of a multi-repo project — including the fork — cannot be selected as a task source. Consequence: the fork's own issues are never listed, and "new issue" files into the upstream repo.
Steps to reproduce
- Two checkouts on one local host, no SSH/remote hosts:
bun_root:origin=https://github.com/me/bun_root.gitearepo:origin=https://github.com/me/earepo.git,upstream=https://github.com/me/bun_root.git
- Import both folders as projects.
- Open Tasks → GitHub.
settings.defaultRepoSelectionresolves to[<bun_root repo id>]. - Open the project/source combobox ("All projects"):
- there is exactly one flat entry for the shared project (its source repos
bun_root,earepo, … are not selectable individually; no chevron / no flyout)
- there is exactly one flat entry for the shared project (its source repos
- Search
is:issue is:open: list stays empty, the+button announces the issue will be created inbun_root. No per-repo chip and no "Issue source"[Upstream | Origin]selector is shown anywhere.
Expected
Either of:
- individual repos of a multi-repo project are selectable on a single host as well (the "Choose task source" flyout should depend on
sources.length > 1, not on distinct hosts), or - the tasks page exposes the
Issue sourceselector (Origin/Upstream) for the fork repo, so its own issues can be listed.
Actual
- A multi-repo project is one flat row; the fork repo is unreachable as a task source.
- Because
issueSourcePreferenceis unset (auto) andupstreamwins during remote resolution,gh:listIssuesqueriesrepos/me/bun_root/issuesforearepo(0 open) instead ofrepos/me/earepo/issues(7 open, 53 total). +creates inbun_rootbecauseprimaryRepo = selectedRepos[0].
Evidence (1.4.261, extracted app.asar)
-
out/renderer/assets/TaskPage-BGzSg4WW.js, comboboxAv: rows are project groups; the per-repo flyout trigger is guarded bya = Ev(e)withEv(e) = Tv([e]).Tvreturnstrueonly if the group's sources produce more than one distinct host key:function Tv(e){let t=new Set;for(let n of e)for(let e of n.sources)if(t.add(_a(e)),t.size>1)return!0;return!1} function Ev(e){return Tv([e])}
_a(repo)is the host key (executionHostId, else derived fromconnectionId—out/renderer/assets/execution-host-BesDltao.js,function v). A group with only local repos therefore always yieldsfalse, so no flyout trigger is rendered. -
The flyout itself already renders the repo list (
e.sources.map(...)), so the data is present; only the control is missing. -
IssueSourceSelector(xy, same bundle) returnsnullunless the repo is found inselectedRepos:let t = selectedRepos.find(r => wr(r, e.repoId, e.hostId)); return !jh(e) || !t ? null : <div>… <xy …/> …</div>;
with
jh(e)requiring anoriginCandidateand anupstreamCandidatethat differ. So the toggle is unrenderable for a repo that cannot be selected. -
Main process
out/main/index.js:b_t()buildsoriginCandidate/upstreamCandidate; the remote resolution helper prefersupstreamoveroriginwhileissueSourcePreferenceis unset/auto;gh:listIssuespassesissueSourcePreferencethrough. -
Identity:
out/shared/project/host-setup/project-host-setup-projection.js,getProjectProviderIdentity()prefersrepo.upstreamover the remote identity.
Environment
- Orca 1.4.261 (
stably-orca-bin, Arch/CachyOS), UI language German, Linux, single local host only. - Repos under
~/Nextcloud/dev:bun_root;dak-luy-datenpflege(origin=self, upstream=bun_root);earepo(origin=self, upstream=bun_root);pmdm(upstream=bun-starter);standbild.
Related
- fix(projects/sidebar): prefer origin over fork-parent upstream for project identity; prune stale project-group collapse keys #29789 / PR fix(projects/sidebar): prefer origin for project identity; prune stale project-group collapse keys #29792 change the project identity to prefer
originover the fork-parentupstream. That removes the collapse for this exact setup, but the picker gap remains for any legitimately multi-repo project on a single host.
Reported at @bjoernwuest's request, drafted with the help of an AI assistant (Junior Admin / litellm) from the running app's bundle, profile-state.db and the GitHub API. Happy to re-test on 1.4.261+ with a patched build.
Activity
fix(tasks): let single-host multi-repo projects pick an individual ta…
fix(tasks): let single-host multi-repo projects pick an individual ta…