Files
hermes-agent/hermes_cli
Chuenlye Leo e04e07865b fix(doctor): drop --json authenticated for gh CLI compatibility
gh CLI 2.98+ removed the 'authenticated' field from 'gh auth status --json'
(only 'hosts' remains), causing the command to exit 1 even when the user
is authenticated. The doctor then falsely reports 'No GITHUB_TOKEN' despite
the user being logged in via 'gh auth login'.

Since the code only checks the return code (it never parses stdout), the
'--json' flag is unnecessary. 'gh auth status' without it works across all
gh versions and returns exit 0 when authenticated.

Fixes: gh auth status --json authenticated → gh auth status
2026-09-13 20:56:26 -07:00
..
…