Repository navigation
Description
Before submitting
- I searched existing issues and did not find an exact duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/desktop, project creation and source control
Summary
Adding a private GitHub repository as a T3 project can silently use the wrong environment and then report a misleading authentication error.
Steps to reproduce
- Use T3 Code (Nightly) on macOS with a remote environment named
4chopslab. - Authenticate GitHub on
4chopslabwithgh auth loginusing HTTPS. - Verify repository access on
4chopslab:Both commands succeed.gh repo view 416p0rkch0ps/Vantage git ls-remote https://github.com/416p0rkch0ps/Vantage.git
- In T3, choose Add project and clone
https://github.com/416p0rkch0ps/Vantage. - The first clone flow defaults to the local environment, shown as
Jorge's MacBook Air, instead of the intended4chopslab. The default destination is~/Vantage, not the requested~/projects/Vantage. - The clone fails. The UI reports:
The earlier failure also showed:
Failed to clone Vantage remote: Repository not found. fatal: repository 'https://github.com/416p0rkch0ps/Vantage.git/' not foundfatal: could not read Username for 'https://github.com': terminal prompts disabled - Saving the same valid fine-grained GitHub token in T3 Settings and retrying did not fix the project while it remained attached to the local environment.
- Remove the failed project, explicitly search for and select
4chopslab, choose the GitHub repository flow, and set the destination to~/projects/Vantage. The clone then succeeds.
Expected behavior
- T3 should clearly show and honor the selected run environment before cloning.
- The clone should use the credentials configured for that environment, or explain which credential store it uses.
- The destination should be explicit and preserved.
- Authentication failures should not be reported as
Repository not foundwhen the repository exists but credentials are unavailable.
Actual behavior
The flow defaulted to the local Mac environment and an unintended destination. The resulting authentication failure was reported as Repository not found, which obscured the environment and credential mismatch.
Impact
Major degradation for users cloning private repositories to remote environments. The native flow appears broken until the failed entry is removed and recreated with the environment and path explicitly selected.
Environment
- T3 Code (Nightly) desktop on macOS
- Remote environment:
4chopslab - GitHub repository: private repository owned by the reporter
- Observed November 5, 2026
- Exact T3 build was not recorded
Workaround
Remove the failed project entry and recreate it. Search for and explicitly select the intended environment, use the GitHub repository source, and set the destination path explicitly.
Related
- [Bug]: Project transfer fails GitHub HTTPS authentication in WSL while noninteractive Git and manual clone succeed #30892 covers a related project-transfer failure where manual noninteractive Git access succeeds but T3's clone operation cannot authenticate. This report focuses on the desktop project-creation flow selecting the wrong environment and masking the resulting authentication failure.
Activity