holdThoughts held a Gemini 4 stream until its first non-thinking part, so a late 400 INVALID_ARGUMENT could be asked again without sending thinking twice. On a long-thinking turn (gemini-4-hydrogen at high: 60-140 s) the client got nothing until the answer began, and harnesses with a 60-120 s idle timeout gave up. Now the hold ends after retry400.holdMs (10 s): what was held goes out and the rest streams live. A read still out when the time runs out is taken by the body first, so no chunk is lost. A 400 within the first 10 s is still asked again; one after that reaches the client as it is. No switch: the cap covers the timeout without a setting. Run (WSL, Bun 1.4.2, temp HOME): packages/antigravity bun test 84 pass; bun scripts/check.mjs antigravity ok. Broken by hand: with the timer replaced by a promise that never settles, the new test fails at its 3 s timeout. Not tried: a real Gemini 4 account. Reported-by: hardfist
13 lines
631 B
JSON
13 lines
631 B
JSON
{
|
|
"name": "@magpie-community/opencode-antigravity-auth",
|
|
"version": "0.1.9",
|
|
"description": "Sign in to Antigravity with a Google account from OpenCode or magpie: Gemini, and the Claude and GPT-OSS models Google hosts for it",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": { ".": "./opencode2.mjs" },
|
|
"files": ["index.mjs", "opencode.mjs", "opencode2.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "antigravity", "gemini"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/antigravity" }
|
|
}
|