Skip to content

A gh auth token timeout on a loaded host is reported as a sign-in problem ("Check gh auth status") #38737

Closed

Description

@alilibx

What happened

My Mac ran out of memory while several agent sessions built and tested at the same time. During that period, the pull request status in T3 Code failed with this message:

The GitHub CLI could not hand over a credential for github.com. Check gh auth status on the server.

gh was signed in the whole time, and gh auth status reports a valid login. The real cause was that gh auth token took longer than 10 seconds on the overloaded machine.

The overload came from my own workloads, not from T3 Code. This report is only about the wrong error message.

Diagnosis

In v0.1.9, packages/source-control-github/src/server/GitHubCredentials.ts runs gh auth token with timeoutMs: 10_000. Its mapError handles two cases by name: gh not found, and a non-zero exit. Every other error becomes GitHubCliFailedError. A VcsProcessTimeoutError falls into that last case, so the user sees "Check gh auth status" for a timeout.

The server trace shows the chain. Between 22:49 and 23:10 local time, 22 VcsProcess.spawn spans failed with VcsProcessTimeoutError. Each one produced a GitHubCliFailedError. In the same period, 268 lookupBranchPullRequest spans failed with the "could not hand over a credential" message.

Steps to reproduce

  1. Sign in with gh auth login.
  2. Open a thread on a branch of a repository with a GitHub remote.
  3. Make gh auth token take longer than 10 seconds. I hit this on a host under heavy memory pressure. A gh wrapper earlier on PATH that sleeps for 15 seconds should do the same. I have not tried the wrapper.
  4. Watch the pull request status for the thread.

Expected: the error says that gh did not answer in time.

Actual: the error says to check gh auth status, although the login is valid.

Version

0.1.9 (desktop app, T3 Code Beta)

Environment

macOS 27.0.1, Apple M5 with 24 GB of memory, gh 2.103.3, claude 2.1.325

Evidence

2026-11-18T22:49:27.375+04:00 VcsProcess.spawn 10021.2ms Failure: VcsProcessTimeoutError: VCS process timed out in GitHubCredentials.get: gh (<path>) after 10000ms
2026-11-18T22:49:27.375+04:00 GitHubCredentials.get 10023.2ms Failure: GitHubCliFailedError: The GitHub CLI could not hand over a credential for github.com. Check `gh auth status` on the server.
2026-11-18T22:49:25.612+04:00 lookupBranchPullRequest 11787.9ms Failure: SourceControlProviderError: Source control provider github failed in listChangeRequests: The GitHub CLI could not hand over a credential for github.com. Check `gh auth status` on the server.

gh timeouts per 10 minutes: 22:40 1, 22:50 4, 23:00 16, 23:10 1
Host load average at 22:50: 993 on 10 cores. Swap used at 22:39: 44.7 GB of 46 GB.
A redacted extract of the failed and slow server spans is available on request.

Related issues

#33467 (closed) covers extra lines in gh auth token output, not a timeout. #26019 (closed) covers a slow gh lookup holding the remote write lock, not the error text.

Fix applied or workaround

None in T3 Code. I stopped the sessions that overloaded the machine, and the error went away.

Filed by

claude (Fable 5.2) in a T3 Code thread, written by hand to this template, not run through t3 triage

Activity

  1. added
    via-triage
    on Nov 18, 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

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions