Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
Not sure. The affected workflow is adding an existing project to another machine; the failing operation is the destination clone.
Steps to reproduce
User-observed sequence, not an independently reproduced minimal fixture:
-
Use T3 Code with a source machine and a destination machine, both using WSL.
-
Attempt to add an existing private GitHub project to the destination through T3's project-transfer workflow.
-
The destination reports a clone authentication failure with the error below.
-
In a WSL terminal on the destination, run
gh auth login --hostname github.com --git-protocol https --webandgh auth setup-git --hostname github.com. -
Verify that
git ls-remote <HTTPS_REPOSITORY_URL> HEADreturns a commit hash, then retry the transfer. The same clone error persists. -
In T3's integrated terminal on the destination, verify that this also returns a commit hash:
GIT_TERMINAL_PROMPT=0 GIT_ASKPASS=/bin/false git ls-remote <HTTPS_REPOSITORY_URL> HEAD
-
Run
git clone <HTTPS_REPOSITORY_URL> <NEW_LOCAL_DIRECTORY>in the destination's T3 integrated terminal. The clone succeeds, while the transfer workflow has continued to fail.
The placeholders refer to the same private GitHub repository throughout. Repository identifiers and local paths are intentionally omitted.
Expected behavior
The project-transfer clone succeeds when the destination has working noninteractive GitHub authentication. If transfer requires a different authentication context, T3 should identify that context and explain how to configure it.
Actual behavior
The transfer fails with:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
The destination offers Retry, but retrying after configuring authentication still fails. Noninteractive remote access and a full manual clone both succeed in the destination's T3 integrated terminal.
Follow-up controlled probes isolate DBUS_SESSION_BUS_ADDRESS as the variable that switches noninteractive remote access between success and the reported failure. See the diagnostic results below. The exact application-level mechanism remains unverified.
Impact
Major degradation or frequent failure. The project-transfer workflow is blocked for this setup; manual cloning provides a workaround for repository files.
Version or commit
Both installations were installed on November 4, 2026. The reporter expects them to be on the same version; exact version strings and commits were not collected or compared.
Environment
- Source and destination both use WSL.
- Successful noninteractive Git checks and manual clone were confirmed by the reporter in the destination's T3 integrated terminal.
- WSL distribution/version, Git and GitHub CLI versions, and destination server launch method were not collected.
- Observed November 4, 2026.
Logs or stack traces
The exact authentication error is quoted above. No server trace was collected.
Screenshots, recordings, or supporting files
The reporter supplied a screenshot confirming the clone-failure banner and exact error. It is not attached here because it contains private project and machine identifiers.
Workaround
Clone the repository manually in the destination's T3 integrated terminal and open that existing directory as a project. This bypasses the failing transfer clone; it does not establish that project transfer is fixed.
Related reports
- [Bug]: Mobile: draft content is not restored after choosing a project following a failed clone #26785 contains the same clone error as a trigger, but explicitly concerns draft recovery rather than authentication.
- Allow preserving GIT_ASKPASS for Coder authentication during workspace creation #23044 concerns preserving
GIT_ASKPASSfor Coder authentication during workspace creation. Related authentication context, but a different environment and operation; its cause has not been confirmed here.
Searched open issues for the exact error, clone authentication/credential failures, WSL cloning, and adding projects to another machine. No exact duplicate was found.
Prepared by GPT-6.1 Sol in T3 Code on behalf of the reporter. The reporter ran the destination diagnostics described below. Source inspection covered current main and v0.1.7; the installed destination version remains unverified. No independent reproduction of the complete project-transfer workflow was performed.
Follow-up: controlled environment probes isolate the D-Bus session address
The reporter ran a diagnostic in the destination T3 integrated terminal. It read the T3 ancestor process's startup environment through Linux /proc, then invoked Git under that snapshot and under the working terminal environment. It did not print credentials, remote URLs, hashes, raw helper output, or the D-Bus address values.
Remote probes used the same origin, ran outside the repository, disabled terminal prompting, and matched the clone's language/progress settings. They used git -c safe.bareRepository=explicit ls-remote -- <HTTPS_REPOSITORY_URL> HEAD, not a full clone.
Baseline results:
- Terminal environment: PASS.
- Server startup environment: FAIL, exit 128, username unavailable and terminal prompts disabled.
- HOME, GH_CONFIG_DIR, XDG_CONFIG_HOME, Git configuration override variables, Git/GitHub CLI executable paths, and effective GitHub credential-helper configuration matched.
- PATH, WSL_INTEROP and DBUS_SESSION_BUS_ADDRESS differed.
Changing one variable at a time, in both directions:
- Server environment with terminal PATH: FAIL. Terminal environment with server PATH: PASS.
- Server environment with terminal WSL_INTEROP: FAIL. Terminal environment with server WSL_INTEROP: PASS.
- Server environment with terminal DBUS_SESSION_BUS_ADDRESS: PASS. Terminal environment with server DBUS_SESSION_BUS_ADDRESS: FAIL, exit 128, username unavailable and terminal prompts disabled.
Thus the D-Bus session address alone fixes and reproduces the authentication failure in these subprocess probes. PATH and WSL_INTEROP alone do not. This is consistent with credentials being available through one session's keyring/Secret Service but not the other; the precise helper/keyring mechanism has not been verified.
Limits: Linux /proc/<pid>/environ exposes the startup environment and may not reflect later in-process changes. These results isolate the failure in subprocess probes; they do not prove the live transfer process retains exactly that snapshot. The actual project transfer has not yet been verified after a D-Bus environment repair.
Source pointers in v0.1.7:
- Clone environment and disabled prompts.
- Clone subprocess invocation.
- Git inherits the server process environment.
- Terminal can apply its own runtime environment.
Also related: #23603 concerns GitHub CLI credential lookup and D-Bus in WSL, but reports daemon leaks when a session bus is absent. This report has two populated but different session-bus addresses, with authentication changing when those addresses are swapped. It is not established as the same defect.
Activity
juliusmarminge commentedon Nov 4, 2026
Thanks for the detailed report. We tried this on current
main(9e85538) on Linux. We used a local Git remote that requires HTTP auth and a credential helper, and drove it through the app's clone flow and its integrated terminal.fatal: could not read Username for '…': terminal prompts disabled. In the same server's integrated terminal,GIT_TERMINAL_PROMPT=0 GIT_ASKPASS=/bin/false git ls-remote <url> HEADand a manualgit cloneboth succeed. That matches what you saw.Both the clone and the terminal start from the same server environment. The integrated terminal also runs your shell's startup files, so it can see variables the clone never gets (for example
GH_CONFIG_DIR,XDG_CONFIG_HOME,GH_TOKEN,DBUS_SESSION_BUS_ADDRESS). We need to know which one your GitHub credentials depend on before we change anything. On the destination machine, could you share:npx t3in a WSL terminal, a service, or an SSH launch from another machine.git config --show-origin --get-regexp '^credential', and the line fromgh auth statusthat says where the token is stored (keyring or a config file). Leave out tokens and account names.sluscombepure commentedon Nov 4, 2026
Thanks for the response.
Logged in to github.com account sluscombepure (keyring)