Skip to content

[Bug]: Project clone silently uses the wrong environment and masks GitHub auth failures #31664

Open

Description

@416p0rkch0ps

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

  1. Use T3 Code (Nightly) on macOS with a remote environment named 4chopslab.
  2. Authenticate GitHub on 4chopslab with gh auth login using HTTPS.
  3. Verify repository access on 4chopslab:
    gh repo view 416p0rkch0ps/Vantage
    git ls-remote https://github.com/416p0rkch0ps/Vantage.git
    Both commands succeed.
  4. In T3, choose Add project and clone https://github.com/416p0rkch0ps/Vantage.
  5. The first clone flow defaults to the local environment, shown as Jorge's MacBook Air, instead of the intended 4chopslab. The default destination is ~/Vantage, not the requested ~/projects/Vantage.
  6. The clone fails. The UI reports:
    Failed to clone Vantage
    remote: Repository not found.
    fatal: repository 'https://github.com/416p0rkch0ps/Vantage.git/' not found
    
    The earlier failure also showed:
    fatal: could not read Username for 'https://github.com': terminal prompts disabled
    
  7. 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.
  8. 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 found when 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

Activity

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