Skip to content

Source Control settings: the "then rescan" step after gh auth login points to an unlabeled icon in another section #31848

Description

@MCKevmeister

What happened

I was trying to sign in with GitHub on the Source control providers page. It says to sign in with gh auth login and then rescan. I signed in twice, but it wasn't clear what the rescan was supposed to be. There is no button called Rescan, and the GitHub provider section asks for a token instead. The rescan control turned out to be a circular arrow icon, which is not an obvious thing to press. My account only appeared after restarting the app.

Diagnosis

This is a UX and copy problem. The gh login itself was fine, and the provider check succeeded once it ran again.

  • The GitHub panel says: "Sign in with gh auth login on the server host, then rescan to choose accounts here." (SourceControlAccountSettings.tsx). main still has this wording.
  • The only rescan control on the populated page is an icon-only button with no visible text (scanButton in SourceControlSettings.tsx). Its name appears only in a tooltip and aria-label.
  • That button is in the header of the Version Control section, not in the GitHub panel. It can be off-screen when GitHub is expanded.
  • The GitHub panel renders the token form (SourceControlTokenSettings) above the rescan instruction, so the visible next step looks like pasting a token.
  • I found nothing in the settings page code that re-runs discovery after a login in an external terminal, so the page stays stale until a manual rescan or a reload.

Suggested fixes:

  1. Put a labeled "Rescan" button directly beside the instruction.
  2. Name the control in the copy if it stays an icon.
  3. Make it clear the token is an alternative to gh auth login.
  4. Consider re-running discovery when the window regains focus.

Steps to reproduce

Reconstructed from this session, not re-run from a clean state:

  1. Open T3 Code desktop with gh not signed in.
  2. Go to Settings > Source Control and expand GitHub under Source control providers.
  3. Run gh auth login in an external terminal.
  4. Return to the page. It shows the old status, the "then rescan" text and a token form, with no control labeled Rescan.
  5. Restart the app and reopen the page, or click the circular arrow icon by the Version Control heading. Only the restart was tested in this session.

Version

0.1.8-nightly.20261106.4247 (desktop app)

Environment

Arch Linux arm64 (kernel 7.2.11), Hyprland, desktop AppImage with local server, gh 2.103.3

Evidence

# Server trace and file timestamps, local time (+13:00), 2026-11-06
19:20:45  server.discoverSourceControl  Success   (only scan before the restart)
19:23:11  gh hosts.yml last written by gh auth login
19:29:22  still no newer scan in the trace
19:31:17  server restarted
19:31:25  server.discoverSourceControl  Success   (user confirms the account now appears)

# Same probe the server runs, in a terminal with the server's PATH, before the restart
$ gh auth status --json hosts
state=success active=true host=github.com tokenSource=keyring   (login redacted), exit 0

Related issues

No duplicate found. #15976 and #3806 are different: there, GitHub auth failed or was misreported, while here auth works and the problem is finding the rescan step.

Fix applied or workaround

Nothing was changed on the machine. Restarting the app makes the account appear. The circular arrow icon by the Version Control heading is the rescan control, per the source; clicking it was not tested in this session.

Filed by

Claude Code (claude-opus-5-5) via t3 triage

Activity

  1. added
    via-triage
    on Nov 6, 2026
  2. MCKevmeister commented on Nov 6, 2026

    @MCKevmeister
    Author

    Please don't do any of the suggested fixes that triage has created, this should be something far more automated. That I have to go to a terminal away from t3code is already the issue here. The auth flow should be far simpler and more seemless. I can see how this wouldn't have been addressed so far

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

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions