You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constGEMINI_DISABLED_ERROR_MARKER:&str = "gemini has been disabled in this account";
29
+
constGEMINI_DISABLED_WARNING:&str = "Gemini has been disabled in this Google account for a Terms of Service violation. Requests cannot continue until access is restored. Contact Google Cloud Support or email gemini-code-assist-user-feedback@google.com.";
30
+
28
31
/// HTTP client for Google Cloud Code API with retry logic and rate limiting.
"message": "Gemini has been disabled in this account for violation of Terms of\n\t\tService. If you believe this is an error, please contact Google Cloud Support, or email\n\t\tgemini-code-assist-user-feedback@google.com.",
656
+
"status": "PERMISSION_DENIED"
657
+
}
658
+
}"#;
659
+
660
+
let error = map_http_error(403, upstream_error,Some("gpt-5.3-codex"));
Copy file name to clipboardExpand all lines: src/tui/app.rs
+82-1Lines changed: 82 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,12 @@ use super::theme;
23
23
constMIN_WIDTH:u16 = 60;
24
24
/// Minimum terminal height for proper display
25
25
constMIN_HEIGHT:u16 = 15;
26
+
/// Marker used by Google's raw 403 payload.
27
+
constGEMINI_DISABLED_MARKER_RAW:&str = "gemini has been disabled in this account";
28
+
/// Marker used by AGCP's mapped 403 message.
29
+
constGEMINI_DISABLED_MARKER_MAPPED:&str = "gemini has been disabled in this google account";
30
+
/// Popup message shown when Gemini access is disabled on the account.
31
+
constGEMINI_DISABLED_WARNING_MESSAGE:&str = "Google has disabled Gemini access for this account due to a Terms of Service violation. Requests will continue to fail until access is restored. Contact Google Cloud Support or email gemini-code-assist-user-feedback@google.com.";
let entries = vec![super::super::data::LogEntry::new(
2823
+
r#"WARN Request error status=502 error=http error: HTTP 403: {"error":{"code":403,"message":"Gemini has been disabled in this account for violation of Terms of Service.","status":"PERMISSION_DENIED"}}"#.to_string(),
2824
+
)];
2825
+
2826
+
let warning = detect_runtime_warning_message(&entries);
2827
+
assert!(
2828
+
warning.is_some(),
2829
+
"expected runtime warning for raw Gemini-disabled 403"
let entries = vec![super::super::data::LogEntry::new(
2836
+
"WARN Request error status=403 error=server error (403): Gemini has been disabled in this Google account for a Terms of Service violation.".to_string(),
2837
+
)];
2838
+
2839
+
let warning = detect_runtime_warning_message(&entries);
2840
+
assert!(
2841
+
warning.is_some(),
2842
+
"expected runtime warning for mapped Gemini-disabled 403"
0 commit comments