GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: PR refresh does not discover child Git repositories in non-Git parent workspaces with multiple remotes · Issue #20378 · pingdotgg/t3code

[Bug]: PR refresh does not discover child Git repositories in non-Git parent workspaces with multiple remotes #20378

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[Bug]: PR refresh does not discover child Git repositories in non-Git parent workspaces with multiple remotes#20378
Copy link
Labels
enhancementRequested improvement or new capability.via-triageFiled through npx t3 triage

Description

@RajAccellor
RajAccellor
opened on Oct 16, 2026
Issue body actions

Before submitting

  • Searched open and closed issues and PRs; related work is linked below.
  • Included the workspace layout, reported behavior, and current source paths.

Area

apps/server; Pull Requests UI in apps/web / desktop

Problem

Refreshing GitHub PRs does not discover repositories inside a non-Git parent workspace. When a child checkout has several remotes belonging to different organizations/accounts, the PR workflow also needs a way to select the intended repository and use its account.

Steps to reproduce

  1. Add a non-Git parent directory as a T3 project:

    workspace/                 # T3 project; no .git
      app/.git/                # actual checkout
    
  2. Configure the child checkout with multiple GitHub remotes, for example:

    origin  https://github.com/example-org-a/app.git
    ic      https://github.com/example-org-a/app.git
    ac      https://github.com/example-org-b/app.git
    
  3. Authenticate two GitHub accounts with access to their respective organizations. Have PRs available in the relevant remote repositories.

  4. Keep the parent workspace open and refresh the Pull Requests view.

Expected behavior

  • Discover child Git checkouts, or offer a repository discovery/selection action without requiring a separate top-level project for each child.
  • Make their PR functionality available and run Git operations in the selected child's root.
  • Derive available repository choices from that child's actual remotes. Allow selection when remotes identify different repositories; aliases for the same repository should not duplicate it.
  • Resolve the GitHub account for the selected repository/remote. An inaccessible account should produce an actionable error, rather than silently hiding PRs or selecting a different remote. Refresh should retain the selected repository/account context.

Actual behavior

Reported on macOS: PR refresh is unavailable or fails to populate the relevant child repository PRs in this parent-workspace/multiple-remotes setup.

Source inspection confirms a discovery gap on main at 3b99fb2d2114f57c96bf92e4ed1c7ce5eaa67b1e:

  • RepositoryIdentityResolver runs git -C <workspace> rev-parse --show-toplevel and returns null on failure. It does not search descendant checkouts.
  • PR project enumeration resolves project.workspaceRoot and skips projects without a repository identity.
  • Primary remote selection selects one remote (upstream, then origin, then alphabetical), so it does not enumerate all distinct remote repositories for PR selection.
  • GitHubCredentials uses the server working directory, and its credential lookup/cache is per host plus optional host account. Account routing is already tracked separately below.

The installed build number and exact refresh error are unavailable. This report distinguishes the observed symptom from source inspection; no fresh UI reproduction on this upstream commit was performed.

Impact

Major degradation: a parent workspace used for cross-repository work cannot discover/list its child repositories' PRs through the normal refresh flow.

Workaround

Register the child checkout as a separate project. This addresses the discovery boundary; correct account routing and selecting another remote remain separate concerns.

Related work / scope distinction

  • [Bug]: PR URLs cannot be linked to threads in non-Git parent workspaces #9435 (closed) concerned linking a known PR URL from a non-Git parent workspace. This report concerns discovering/listing PRs from child checkout remotes during refresh, without first supplying a PR URL.
  • [Bug]: Diff view drops intermediate directories for a nested git repo under a non-git project root #12902 concerns nested-repository diff paths, rather than PR discovery.
  • [Bug]: Pull request sync runs all projects' gh lookups from one directory, breaking per-account gh setups #14123 / [Bug]: GitHub credentials ignore the project checkout since the API transport, so per-checkout gh accounts on one host can't read their PRs #17004 already track multiple-account failures; open PRs fix(server): use the checkout's GitHub login for requests #19013 / fix(source-control): each repository is read with the GitHub account that can see it #20337 propose account-routing fixes. This issue does not seek to duplicate that work, but child-repository discovery must preserve its repository/account context.
  • Open PR fix(server): repository identity prefers the gh default remote #14291 makes repository identity prefer the gh default remote; that is related to choosing a remote after finding a checkout, but does not discover child checkouts from a non-Git parent.

Activity

  1. juliusmarminge commented on Oct 16, 2026

    @juliusmarminge
    juliusmarminge
    on Oct 16, 2026
    Member
    More actions

    Note

    Grok responding on behalf of Julius.

    This is a feature request, not a bug, so I'm closing it and pointing it to Ideas. On main, PR refresh works per project: RepositoryIdentityResolver runs git rev-parse --show-toplevel in the project's workspace root and picks one primary remote (upstream, then origin). A non-Git parent folder has no repository identity, so it's skipped on purpose. Scanning for child checkouts and letting you pick among remotes would be a new workflow.

    You can do this today by adding the child checkout (workspace/app) as its own project. Multi-account routing is tracked in #14123 / #17004 (PRs #19013, #20337), and choosing the gh default remote is in #14291.

    Please open a discussion in Ideas for child-repo discovery. If PRs don't show up when the child is registered as its own project, comment here and we'll reopen.

  2. juliusmarminge
    added
    enhancementRequested improvement or new capability.
    via-triageFiled through npx t3 triage
    on Oct 16, 2026
  3. juliusmarminge
    closed this as not plannedon Oct 16, 2026
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

    enhancementRequested improvement or new capability.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.