Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): outdated gh no longer reads as "not authenticated" #7588

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/7588/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

A user on gh 2.72.0 kept seeing "GitHub: Not authenticated" while gh was perfectly logged in. We probe with gh auth status --json hosts, but --json only exists in gh 2.81.0+. Older versions reject the flag and exit non-zero, and we read that as "signed out".

Now the probe recognizes the unknown flag: --json failure and reports it as what it is: an outdated CLI. Settings → Source Control shows "Could not verify GitHub" with an update hint (gh 2.81.0+, e.g. brew upgrade gh) instead of the false "Not authenticated" badge. Since the status is now "unknown" rather than "unauthenticated", publish and clone readiness checks no longer block old-gh users who are actually signed in. Docs name the minimum version.

Not installed and not authenticated already had clear warnings; old version was the missing case.

Change made by Claude Fable 5 via Claude Code.

🤖 Generated with Claude Code


Note

Low Risk Small, targeted change to GitHub auth probe parsing and settings copy; no auth or data-path changes beyond clearer status classification.

Overview GitHub auth discovery now treats gh auth status --json failures that mention unknown flag: --json as an outdated CLI (status unknown with an update-to-2.81.0+ message), instead of not authenticated.

Settings → Source Control surfaces that server-provided auth.detail when verification fails, so users see the upgrade hint rather than only the generic install text. Docs call out the minimum gh version and a troubleshooting entry for “could not verify sign-in status.”

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 0d6216306a6c10b2427c197c122fca7ef6958e63. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Fix outdated GitHub CLI reporting as unauthenticated instead of unknown

  • parseGitHubAuth in GitHubSourceControlProvider.ts now returns status unknown with an update hint when gh auth status --json fails due to unknown flag: --json, rather than falling through to unauthenticated.
  • The settings UI in SourceControlSettings.tsx now displays the provider-supplied auth.detail message in the 'Could not verify' state, so users see the instruction to upgrade GitHub CLI to 2.81.0+.
  • Docs updated to require GitHub CLI 2.81.0+ and add a troubleshooting note for sign-in verification.
Macroscope summarized 0d62163.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: de91ff35-374d-4ed9-bbc2-4ea5d30632da

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. Approvability

      Verdict: Approved at 0d62163

      Macroscope's review found this PR approvable — This is a straightforward bug fix that improves error messaging when users have an outdated GitHub CLI. The change is well-scoped, includes a test, and only affects how error conditions are displayed to users - not core authentication logic.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire12.6 KiB12.6 KiB−7 B (−0.1%)15.1 KiB✅
      CodexThread snapshot wire6.3 KiB6.3 KiB−1 B (−0.0%)7.3 KiB✅
      CodexLive turn WebSocket wire6.3 KiB6.3 KiB−6 B (−0.1%)7.8 KiB✅
      CodexLive turn WebSocket decoded51.8 KiB51.8 KiB0 B (0.0%)66.4 KiB✅
      CodexLive turn messages16160 (0.0%)21✅
      ClaudeTotal thread wire12.6 KiB12.6 KiB−13 B (−0.1%)15.1 KiB✅
      ClaudeThread snapshot wire6.3 KiB6.3 KiB−7 B (−0.1%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.3 KiB6.3 KiB−6 B (−0.1%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded52.7 KiB52.7 KiB0 B (0.0%)66.4 KiB✅
      ClaudeLive turn messages16160 (0.0%)21✅

      Baseline: 8c85b49 · PR result: 0d62163 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 99.9 KiB
      • Claude decoded thread snapshot: 100.6 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

Sign in to join this conversation.