Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src-tauri/src/agent_usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,10 @@ fn load_claude_credentials() -> Result<ClaudeCredentials, String> {
return Ok(credentials);
}

if let Some(raw) = load_claude_credentials_from_keychain()? {
return parse_claude_credentials_data(&raw);
}

let credentials_path = claude_credentials_path();
match fs::read_to_string(&credentials_path) {
Ok(raw) => return parse_claude_credentials_data(&raw),
Expand All @@ -481,10 +485,6 @@ fn load_claude_credentials() -> Result<ClaudeCredentials, String> {
}
}

if let Some(raw) = load_claude_credentials_from_keychain()? {
return parse_claude_credentials_data(&raw);
}

Err("Claude OAuth credentials not found. Run `claude` to authenticate.".to_string())
}

Expand Down
Loading