Skip to content

[Bug]: Project transfer fails GitHub HTTPS authentication in WSL while noninteractive Git and manual clone succeed #30892

Open

Description

@sluscombepure

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:

  1. Use T3 Code with a source machine and a destination machine, both using WSL.

  2. Attempt to add an existing private GitHub project to the destination through T3's project-transfer workflow.

  3. The destination reports a clone authentication failure with the error below.

  4. In a WSL terminal on the destination, run gh auth login --hostname github.com --git-protocol https --web and gh auth setup-git --hostname github.com.

  5. Verify that git ls-remote <HTTPS_REPOSITORY_URL> HEAD returns a commit hash, then retry the transfer. The same clone error persists.

  6. 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
  7. 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

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:

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

  1. juliusmarminge commented on Nov 4, 2026

    @juliusmarminge
    Member

    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.

    • Server started from a shell that already has the user's environment: the clone succeeds.
    • Server started without the user's shell rc/profile (the WSL desktop backend starts the server this way): the clone fails with 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> HEAD and a manual git clone both 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:

    1. How that T3 server is started: the Windows desktop app using its WSL backend, npx t3 in a WSL terminal, a service, or an SSH launch from another machine.
    2. The output of this command, run in a fresh T3 integrated terminal on the destination. It prints only variable names, no values: the ones your shell adds on top of the T3 server's own environment.
      comm -13 <(tr '\0' '\n' < /proc/$PPID/environ | cut -d= -f1 | sort -u) <(env | cut -d= -f1 | sort -u)
    3. The output of git config --show-origin --get-regexp '^credential', and the line from gh auth status that says where the token is stored (keyring or a config file). Leave out tokens and account names.
  2. added
    needs more info
    on Nov 4, 2026
  3. sluscombepure commented on Nov 4, 2026

    @sluscombepure
    Author

    Thanks for the response.

    1. T3 is run as the Windows desktop app using its WSL backend.
    ut -d= -f1 | sort -u)
    COLORTERM
    INVOCATION_ID
    LESSCLOSE
    LESSOPEN
    LS_COLORS
    NoDefaultCurrentDirectoryInExePath
    PWD
    SHLVL
    T3CODE_PROJECT_ROOT
    _
    fish_features
    
    file:/home/user/.gitconfig    credential.https://github.com.helper
    file:/home/user/.gitconfig    credential.https://github.com.helper !/usr/bin/gh auth git-credential
    file:/home/user/.gitconfig    credential.https://gist.github.com.helper
    file:/home/user/.gitconfig    credential.https://gist.github.com.helper !/usr/bin/gh auth git-credential
    

    Logged in to github.com account sluscombepure (keyring)

  4. removed
    needs more info
    on Nov 4, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions