mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 10:27:46 +08:00
Merge pull request #690 from zhefox/main
fix(provider): classify deleted Codex agent runtime as invalid
This commit is contained in:
@@ -530,6 +530,18 @@ fn build_oauth_status_snapshot_value(key: &StoredProviderCatalogKey) -> Value {
|
||||
});
|
||||
}
|
||||
if let Some(reason) = tagged_reason(invalid_reason.as_deref(), OAUTH_REQUEST_FAILED_PREFIX) {
|
||||
if admin_provider_quota_pure::codex_looks_like_token_invalidated(Some(&reason)) {
|
||||
return json!({
|
||||
"code": "invalid",
|
||||
"label": "已失效",
|
||||
"reason": reason,
|
||||
"expires_at": expires_at_unix_secs,
|
||||
"invalid_at": invalid_at_unix_secs,
|
||||
"source": "oauth_invalid",
|
||||
"requires_reauth": true,
|
||||
"expiring_soon": false,
|
||||
});
|
||||
}
|
||||
return json!({
|
||||
"code": "check_failed",
|
||||
"label": "检查失败",
|
||||
|
||||
Reference in New Issue
Block a user