Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.42 ·

Enhanced GitHub Authentication Detection

Entry
JSON All of v2.0.42
EntryKind: in v2.0.42,
ChangesSection of the release

What: GitHub CLI authentication detection now uses JSON output parsing for more reliable credential extraction.

How it works: The gh auth status command is now called with --active --json hosts flags, parsing structured JSON instead of text output. This improves reliability across different gh CLI versions and configurations.

Details:

  • New function Xi5() at line 426046 uses gh auth status --active --json hosts for structured output
  • Parses JSON response to extract hosts object and active account login
  • Handles multiple GitHub hosts (github.com, Enterprise instances) by iterating through host entries
  • Replaces old shell parsing approach that used sh -c "gh auth status 2>&1 | head -n 1" and regex matching
  • Evidence: Xi5() at line 426046-426076

Why it matters: More robust GitHub authentication detection prevents false negatives and works consistently across different GitHub CLI versions and Enterprise configurations.

See this entry in the whole of v2.0.42 →

Feedback