Skip to content

[Bug]: Single-host multi-repo project: fork repos cannot be selected as task source, so their own issues are never listed #43565

Closed

Description

@bjoernwuest

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

  1. Two checkouts on one local host, no SSH/remote hosts:
    • bun_root: origin = https://github.com/me/bun_root.git
    • earepo: origin = https://github.com/me/earepo.git, upstream = https://github.com/me/bun_root.git
  2. Import both folders as projects.
  3. Open Tasks → GitHub. settings.defaultRepoSelection resolves to [<bun_root repo id>].
  4. 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)
  5. Search is:issue is:open: list stays empty, the + button announces the issue will be created in bun_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 source selector (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 issueSourcePreference is unset (auto) and upstream wins during remote resolution, gh:listIssues queries repos/me/bun_root/issues for earepo (0 open) instead of repos/me/earepo/issues (7 open, 53 total).
  • + creates in bun_root because primaryRepo = selectedRepos[0].

Evidence (1.4.261, extracted app.asar)

  • out/renderer/assets/TaskPage-BGzSg4WW.js, combobox Av: rows are project groups; the per-repo flyout trigger is guarded by a = Ev(e) with Ev(e) = Tv([e]). Tv returns true only 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 from connectionId — out/renderer/assets/execution-host-BesDltao.js, function v). A group with only local repos therefore always yields false, 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) returns null unless the repo is found in selectedRepos:

    let t = selectedRepos.find(r => wr(r, e.repoId, e.hostId));
    return !jh(e) || !t ? null : <div>… <xy …/> …</div>;

    with jh(e) requiring an originCandidate and an upstreamCandidate that differ. So the toggle is unrenderable for a repo that cannot be selected.

  • Main process out/main/index.js: b_t() builds originCandidate / upstreamCandidate; the remote resolution helper prefers upstream over origin while issueSourcePreference is unset/auto; gh:listIssues passes issueSourcePreference through.

  • Identity: out/shared/project/host-setup/project-host-setup-projection.js, getProjectProviderIdentity() prefers repo.upstream over 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


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

  1. added a commit that references this issue on Nov 17, 2026
    f80cc65
  2. added a commit that references this issue on Nov 17, 2026
    3201939
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions