Skip to content

fix claude auth detection for newer CLI installs#71

Open
eat-happy wants to merge 1 commit intoGreenSheep01201:mainfrom
eat-happy:fix/claude-auth-detection
Open

fix claude auth detection for newer CLI installs#71
eat-happy wants to merge 1 commit intoGreenSheep01201:mainfrom
eat-happy:fix/claude-auth-detection

Conversation

@eat-happy
Copy link
Copy Markdown

Summary

  • fix false claude.authenticated = false when newer Claude Code auth layouts are used
  • keep legacy checks (~/.claude.json keys and ~/.claude/auth.json) for backward compatibility
  • add two fallbacks: credential token presence (readClaudeToken) and claude auth status probe (with Windows-safe invocation)

Test plan

  • Run claude auth status locally and confirm logged in
  • Call GET /api/cli-status?refresh=1 and verify providers.claude.authenticated is true
  • Confirm no regression for other providers in /api/cli-status

Treat Claude as authenticated when the current OAuth token source is available and add a CLI status probe fallback, preventing false unauthenticated state on newer Claude Code installs.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e79e75ebeb

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread server/modules/workflow/agents/providers/usage-cli-tools.ts
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