Skip to content

fix(claude): detect macOS Keychain authentication - #6

Merged
devswha merged 1 commit into
mainfrom
codex/fix-claude-keychain-auth-status
Jul 22, 2026
Merged

fix(claude): detect macOS Keychain authentication#6
devswha merged 1 commit into
mainfrom
codex/fix-claude-keychain-auth-status

Conversation

@devswha

@devswha devswha commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • recognize Claude Code 2.x OAuth credentials stored in the macOS Keychain
  • probe only Keychain item metadata and never request the secret value
  • retain environment, settings.json, and legacy credentials-file precedence
  • make the Claude version probe reject spawn errors and non-zero exits

Reproduction

  1. Complete Claude Code 2.1.31 OAuth login on macOS
  2. Confirm the Claude Code-credentials Keychain item exists
  3. Request /api/providers/claude/auth/status
  4. Before this change the endpoint returns authenticated:false because only the legacy credentials JSON file is inspected

Reproduced twice after a successful OAuth login.

Verification

  • Claude Keychain auth tests: 3/3
  • npm run typecheck
  • npm run lint
  • npm run build

@devswha

devswha commented Jul 22, 2026

Copy link
Copy Markdown
Owner Author

E2E QA evidence (2026-07-22): Claude Code 2.1.31 completed the full two-turn lifecycle, including refresh replay without duplicates and history resume.

@devswha
devswha merged commit 2bb1f09 into main Jul 22, 2026
2 checks passed
@devswha
devswha deleted the codex/fix-claude-keychain-auth-status branch August 13, 2026 13:40
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