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 #20378DescriptionBefore 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
-
Add a non-Git parent directory as a T3 project:
workspace/ # T3 project; no .git
app/.git/ # actual checkout
-
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
-
Authenticate two GitHub accounts with access to their respective organizations. Have PRs available in the relevant remote repositories.
-
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
Activityjuliusmarminge commented on Oct 16, 2026 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|