Skip to content

fix: detect Claude Code CLI install and auth status#377

Closed
f-liva wants to merge 15 commits intoRightNow-AI:mainfrom
f-liva:fix/claude-code-auth-status
Closed

fix: detect Claude Code CLI install and auth status#377
f-liva wants to merge 15 commits intoRightNow-AI:mainfrom
f-liva:fix/claude-code-auth-status

Conversation

@f-liva
Copy link

@f-liva f-liva commented Mar 6, 2026

Summary

  • The Claude Code provider card always showed "No Key Needed" regardless of actual CLI state, because detect_auth() short-circuited all key_required=false providers to NotRequired
  • Now detect_auth() handles claude-code specifically:
    • CLI installed + authenticatedConfigured → card shows "Configured" (green)
    • CLI installed, not authenticatedMissing → card shows "Not Set" (warning)
    • CLI not installedNotRequired → card shows "No Key Needed" with install instructions
  • This also fixes the Runtime/Overview page reporting Claude Code as "not configured" when it's actually ready

Fixes #376

Test plan

  • Install Claude Code and authenticate → Settings page shows "Configured"
  • Install Claude Code but don't authenticate → Settings page shows "Not Set"
  • No Claude Code installed → Settings page shows "No Key Needed" with install command
  • Runtime/Overview page reflects the correct status

🤖 Generated with Claude Code

Federico Liva and others added 15 commits March 6, 2026 00:11
- Add toolchain: Node.js 22, Claude Code CLI, Python 3, uv, Go, gh, ffmpeg
- Add gosu + non-root user (openfang) with passwordless sudo
- Entrypoint drops root privileges via gosu for Claude Code compatibility
- Add GitHub Actions workflow to auto-sync upstream releases

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The dashboard displayed hardcoded "0.1.0" because the /api/status
endpoint didn't return a version field. Add env!("CARGO_PKG_VERSION")
so the frontend shows the correct version.

Fixes RightNow-AI#368

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace opaque dark-background logo with transparent PNG and add
CSS invert filter for light theme so the snake is visible in both
dark and light modes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extend the CSS invert filter to also cover .message-avatar img,
so the agent logo in chat messages is visible in light mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Previously, Claude Code had key_required=false so detect_auth() always
set NotRequired ("No Key Needed"), regardless of whether the CLI was
installed or authenticated. Now it checks:
- CLI installed + authenticated → Configured
- CLI installed, not authenticated → Missing (Not Set)
- CLI not installed → NotRequired (No Key Needed)

This also fixes the Runtime/Overview page showing Claude Code as "not
configured" when it is actually ready.

Fixes RightNow-AI#376

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jaberjaber23
Copy link
Member

Claude Code auth detection was reimplemented correctly in v0.3.25. The original had a logic bug where the installed-but-not-authenticated state was unreachable.

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.

Claude Code provider card should reflect actual installation and auth status

3 participants