fix(server): outdated gh no longer reads as "not authenticated" #7588
main fromrefs/pull/7588/head·merged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubA 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.”
Note
Fix outdated GitHub CLI reporting as unauthenticated instead of unknown#
parseGitHubAuthin GitHubSourceControlProvider.ts now returns statusunknownwith an update hint whengh auth status --jsonfails due tounknown flag: --json, rather than falling through tounauthenticated.- The settings UI in SourceControlSettings.tsx now displays the provider-supplied
auth.detailmessage 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.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
Approvability#
Verdict: Approved at
0d62163Macroscope'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).Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Provider Metric Main baseline This PR Impact PR ceiling Codex Total thread wire 12.6 KiB 12.6 KiB −7 B (−0.1%) 15.1 KiB ✅ Codex Thread snapshot wire 6.3 KiB 6.3 KiB −1 B (−0.0%) 7.3 KiB ✅ Codex Live turn WebSocket wire 6.3 KiB 6.3 KiB −6 B (−0.1%) 7.8 KiB ✅ Codex Live turn WebSocket decoded 51.8 KiB 51.8 KiB 0 B (0.0%) 66.4 KiB ✅ Codex Live turn messages 16 16 0 (0.0%) 21 ✅ Claude Total thread wire 12.6 KiB 12.6 KiB −13 B (−0.1%) 15.1 KiB ✅ Claude Thread snapshot wire 6.3 KiB 6.3 KiB −7 B (−0.1%) 7.3 KiB ✅ Claude Live turn WebSocket wire 6.3 KiB 6.3 KiB −6 B (−0.1%) 7.8 KiB ✅ Claude Live turn WebSocket decoded 52.7 KiB 52.7 KiB 0 B (0.0%) 66.4 KiB ✅ Claude Live turn messages 16 16 0 (0.0%) 21 ✅ Baseline:
8c85b49· PR result:0d62163· Source CI: successScenario 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.
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
de91ff35-374d-4ed9-bbc2-4ea5d30632daYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
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