Skip to content

[Bug]: Github CLI account selection does not follow per-project selection #39080

Closed as not planned

Description

@usr-ein

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Have multiple accounts signed in for gh auth:
gh auth status
github.com
  ✓ Logged in to github.com account account1 (keyring)
  - Active account: true
  - Git operations protocol: ssh
  - Token: gho_************************************
  - Token scopes: 'gist', 'read:org', 'repo'

  ✓ Logged in to github.com account account2 (keyring)
  - Active account: false
  - Git operations protocol: ssh
  - Token: gho_************************************
  - Token scopes: 'gist', 'read:org', 'repo'
  1. Add Github as Source control provider
  2. Select Apply settings for **project1** across All environments at the top
  3. Select github account1 in the Account section of the provider
  4. Switch to Apply settings for **project2** across All environments at the top
  5. Select github account2 in the Account section of the provider
  6. Switch back to Apply settings for **project1** across All environments at the top
  7. Go in the Github source control provider section

Observe: the project1's account is set to account1 instead of the expected account2.

Expected behavior

I think Github accounts should be settable per project. I work on both personal and professional projects in T3, and they're distinguished per-project. However I have a professional Github account, and a personal one. I would like my personal to be used for personal projects, and professional one for the few professional projects.

Actual behavior

The github account selection is global, and project independent, which causes much grief to this user.

Impact

Minor bug or occasional failure

Version or commit

main @ 7d32075

Environment

v0.1.10 macOS 27.0.1

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Make my peace that only one set of projects can get their github account correctly, and the other half can't rely on it.. Or prompt my agents to switch the global gh auth, or run one-off github command specifying which account to use.

Activity

  1. added
    bug
    needs-triage
    on Nov 19, 2026
  2. juliusmarminge commented on Nov 19, 2026

    @juliusmarminge
    Member

    Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

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

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions