diff --git a/apps/aether-gateway/src/handlers/shared/catalog.rs b/apps/aether-gateway/src/handlers/shared/catalog.rs index 6a1ff5a74..9d1936ece 100644 --- a/apps/aether-gateway/src/handlers/shared/catalog.rs +++ b/apps/aether-gateway/src/handlers/shared/catalog.rs @@ -2392,7 +2392,7 @@ fn build_claude_code_quota_status_snapshot( "reset_at": reset_at, "reset_seconds": reset_seconds, "reset_credits": build_codex_reset_credits_status_snapshot( - &metadata, + metadata, observed_at_unix_secs, ), "windows": windows, diff --git a/apps/aether-gateway/src/tests/control/admin/endpoints/quota.rs b/apps/aether-gateway/src/tests/control/admin/endpoints/quota.rs index 2f9b61bd5..7b1c4372c 100644 --- a/apps/aether-gateway/src/tests/control/admin/endpoints/quota.rs +++ b/apps/aether-gateway/src/tests/control/admin/endpoints/quota.rs @@ -2041,24 +2041,16 @@ async fn gateway_refreshes_admin_provider_quota_locally_for_gemini_cli_with_trus #[tokio::test] async fn gateway_refresh_quota_reconciles_unsupported_fixed_provider_endpoints_before_clear_message( ) { - let cases = [ - ( - "provider-claude-code-reconcile", - "claude_code", - 1usize, - "claude:messages", - "https://api.anthropic.com/v1", - "Claude Code 暂不支持自动刷新额度", - ), - ( - "provider-vertex-ai-reconcile", - "vertex_ai", - 2usize, - "gemini:generate_content", - "https://aiplatform.googleapis.com", - "Vertex AI 暂不支持自动刷新额度", - ), - ]; + // Claude Code supports quota refresh now, so Vertex AI is the remaining fixed provider + // whose refresh is unsupported. + let cases = [( + "provider-vertex-ai-reconcile", + "vertex_ai", + 2usize, + "gemini:generate_content", + "https://aiplatform.googleapis.com", + "Vertex AI 暂不支持自动刷新额度", + )]; let providers = cases .iter()