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
fix: resolve version gate and SSE parser misparse of CloudCodeResponse
Update upstream client version from CARGO_PKG_VERSION to dedicated
UPSTREAM_VERSION constant (1.16.5) to pass Google's version gate check.
Fix SSE parser silently misinterpreting CloudCodeResponse-wrapped JSON
as bare GenerateContentResponse when deserialization fails (e.g. missing
'role' field). The fallback parse would produce all-None fields, causing
a misleading 'no candidates' error. Now detects the wrapper key and
extracts text via JSON pointer for a meaningful error message.
Add promptFeedback/blockReason parsing for prompt-level blocking.
Add raw_data to 'no candidates' diagnostic logging.
Fix clippy warnings (collapsible_match, collapsible_if, filter_map).
constSYSTEM_INSTRUCTION:&str = "You are Antigravity, a powerful agentic AI coding assistant designed by the Google Deepmind team working on Advanced Agentic Coding.You are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.**Absolute paths only****Proactiveness**";
let data = "data: {\"response\": {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"This version of Antigravity is no longer supported. Please update to receive the latest features!\"}]}}]}}\n\n";
713
+
714
+
let events = parser.feed(data);
715
+
716
+
assert_eq!(events.len(),1);
717
+
match&events[0]{
718
+
StreamEvent::Error{ error } => {
719
+
assert_eq!(error.error_type,"api_error");
720
+
assert!(
721
+
error.message.contains("no longer supported"),
722
+
"Error message should contain the version gate text, got: {}",
0 commit comments