Skip to content

fix(desktop): recover from outdated Claude Code auth status probes#2788

Open
fletchertyler914 wants to merge 5 commits into
block:mainfrom
fletchertyler914:fix/claude-auth-status-probe
Open

fix(desktop): recover from outdated Claude Code auth status probes#2788
fletchertyler914 wants to merge 5 commits into
block:mainfrom
fletchertyler914:fix/claude-auth-status-probe

Conversation

@fletchertyler914

@fletchertyler914 fletchertyler914 commented Jul 24, 2026

Copy link
Copy Markdown

Summary

  • Older Claude Code builds (e.g. 2.1.37) lack the auth subcommand, so Buzz’s claude auth status probe is treated as a free-form prompt, times out, and leaves onboarding Next disabled with “Status unavailable.”
  • Validate Claude auth probes against JSON loggedIn (instead of bare exit status), surface an actionable update diagnostic, and repair outdated CLIs via claude update during Install / UPDATE CLI.
  • Onboarding shows UPDATE CLI when auth status is unknown but auto-install is available; Doctor surfaces the diagnostic text.

Test plan

  • cargo test --manifest-path desktop/src-tauri/Cargo.toml cli_probe
  • cargo test --manifest-path desktop/src-tauri/Cargo.toml cli_login_
  • cargo clippy --manifest-path desktop/src-tauri/Cargo.toml --all-targets -- -D warnings
  • cd desktop && pnpm check (incl. file-size guard)
  • Pre-push desktop unit tests (3487 passed)
  • Manual: with outdated Claude Code (no auth in --help), open onboarding → Claude shows Status unavailable + UPDATE CLI → install runs claude update → READY → Next enabled
  • Manual: current Claude Code (claude auth status JSON loggedIn: true) still shows READY

Made with Cursor

@fletchertyler914
fletchertyler914 requested a review from a team as a code owner July 24, 2026 23:30
fletchertyler914 and others added 5 commits July 24, 2026 18:53
Older Claude Code builds lack `claude auth status` and treat those args as a
prompt, so onboarding auth checks time out and leave Next disabled. Validate
JSON `loggedIn`, surface an update hint, and repair via `claude update` on install.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Tyler Fletcher <fletchertyler914@yahoo.com>
Add an ignored live PATH probe for manual validation against a downgraded
Claude Code install, and update onboarding e2e for the UPDATE CLI CTA.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Tyler Fletcher <fletchertyler914@yahoo.com>
Move the outdated-Claude auth hint into the card content stack and rename
Status unavailable to Update required so it sits cleanly under UPDATE CLI.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Tyler Fletcher <fletchertyler914@yahoo.com>
Avoid the confusing Install+Update-required state while Claude Code is
being upgraded from onboarding.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Tyler Fletcher <fletchertyler914@yahoo.com>
…ding

Keep the install mutation pending until discover_acp_providers refetches so
onboarding does not briefly flash stale UPDATE CLI after a successful Claude
CLI repair. Retry Claude discovery once if auth is still unknown.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Tyler Fletcher <fletchertyler914@yahoo.com>
@fletchertyler914
fletchertyler914 force-pushed the fix/claude-auth-status-probe branch from 805b387 to 8b1a774 Compare July 24, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant