[Bug]: PR creation cannot resolve a repository nested under a non-Git project root #45141
What happened#
In a T3 multi-repository workspace whose project root is a plain directory, the PR tool tries to detect the forge from the parent directory instead of the nested repository. The branch can be pushed successfully from the nested repo, but pull_request_create fails with:
Source control provider unknown failed in detectProvider: Failed to detect source control provider.
Reproduction#
Open a project folder that has no
.gitat its root and contains one Git repository below it, for example:workspace/ # T3 project root, no .git └── site/ # Git repository (origin: github.com/acme/site)Start a thread on the project root, make a change in
site/, and commit and push the branch from that repository.Ask T3 to create a PR for the pushed branch using its native
pull_request_createtool.The tool detects the project/worktree root, which is not a Git repository, and fails before opening the PR.
Expected behavior#
The native multi-repository context should be available to PR operations. For a project with one nested repository, resolve that repository; for multiple repositories, let the caller select or explicitly identify the repository and branch checkout. Creating a PR from the nested repo should work without having to rebind the T3 project to that subfolder.
Actual behavior#
The operation targets the non-Git parent directory and returns the provider detection error. In this setup, pull_request_create has no repository or checkout parameter, so it cannot target the nested repo.
Scope and related reports#
This is specifically PR creation against a nested repository in a multi-repo project. It is distinct from #41287, which reports the injected instruction preventing a CLI fallback when the PR tool cannot target a different repo, and #44025, which reports that the Diff panel does not guide users to the nested-repository workflow.
Environment#
T3 Code nightly 0.1.14-nightly.20261128.5385, Linux; Codex; project root /home/anrry/.t3/worktrees/kyplen/t3-23780245-10598cbc594c4640 with the Git repo in site/.
The CLI push from site/ succeeded. The T3 PR tool failed at provider detection on the parent folder.
tanstack-source added labelsbug
Sign in to join this conversation.