Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge #7427: fix(antigravity): treat a quota failure on the harness stderr as a usage limit so the fallback model takes over

milind-sonia3e4f3c8a2b3
diff --cc server/drivers/antigravity.ts
index 5438289330,afcd0bedb0..971e3ba6ab
--- a/server/drivers/antigravity.ts
+++ b/server/drivers/antigravity.ts
@@@ -206,11 -205,10 +206,13 @@@ const support: AcpSupport =
stderrFailure: {
line: ANTIGRAVITY_HARNESS_FAILURE_LOG,
message: "Antigravity's local agent connection failed. Send the message again to continue in a fresh Antigravity process.",
+ // A run that failed on an exhausted quota is a usage limit, so the bot's fallback model can carry on.
+ failure: (line) => antigravityHarnessLimit(support.displayName, line),
},
clientFileSystem: true,
+ // Only the native CLI takes them; agy_acp_server keeps its stdio proxies.
+ ownMcpOverHttp: "advertised",
+ takesUnadvertisedHttpMcp: antigravityCliTakesHttpMcp,
clientReadRoots: (turn) => (turn.skillFiles ?? []).map(dirname),
sanitizeToolPayload: true,
updateFilter: antigravityUpdateFilter,