mirror of
https://github.com/instructkr/claw-code.git
synced 2026-06-05 22:17:10 +08:00
fix: expose openai_key_present in doctor auth check
check_auth_health data fields now include openai_key_present alongside api_key_present and auth_token_present. any_auth_present already includes OPENAI_API_KEY for prompt_ready status. Generated with https://github.com/Yeachan-Heo/gajae-code Co-authored-by: Gajae Code <dev@gajae-code.com>
This commit is contained in:
@@ -3759,8 +3759,10 @@ fn check_auth_health() -> DiagnosticCheck {
|
||||
.with_data(Map::from_iter([
|
||||
("api_key_present".to_string(), json!(api_key_present)),
|
||||
("auth_token_present".to_string(), json!(auth_token_present)),
|
||||
("openai_key_present".to_string(), json!(openai_key_present)),
|
||||
("prompt_ready".to_string(), json!(prompt_ready)),
|
||||
("prompt_blocked_reason".to_string(), if prompt_ready { Value::Null } else { json!("auth_missing") }),
|
||||
|
||||
("legacy_saved_oauth_present".to_string(), json!(true)),
|
||||
(
|
||||
"legacy_saved_oauth_expires_at".to_string(),
|
||||
@@ -3790,6 +3792,7 @@ fn check_auth_health() -> DiagnosticCheck {
|
||||
.with_data(Map::from_iter([
|
||||
("api_key_present".to_string(), json!(api_key_present)),
|
||||
("auth_token_present".to_string(), json!(auth_token_present)),
|
||||
("openai_key_present".to_string(), json!(openai_key_present)),
|
||||
("prompt_ready".to_string(), json!(prompt_ready)),
|
||||
("prompt_blocked_reason".to_string(), if prompt_ready { Value::Null } else { json!("auth_missing") }),
|
||||
("legacy_saved_oauth_present".to_string(), json!(false)),
|
||||
@@ -3806,6 +3809,7 @@ fn check_auth_health() -> DiagnosticCheck {
|
||||
.with_data(Map::from_iter([
|
||||
("api_key_present".to_string(), json!(api_key_present)),
|
||||
("auth_token_present".to_string(), json!(auth_token_present)),
|
||||
("openai_key_present".to_string(), json!(openai_key_present)),
|
||||
("prompt_ready".to_string(), json!(prompt_ready)),
|
||||
("prompt_blocked_reason".to_string(), if prompt_ready { Value::Null } else { json!("auth_missing") }),
|
||||
("legacy_saved_oauth_present".to_string(), Value::Null),
|
||||
|
||||
Reference in New Issue
Block a user