
两处 Antigravity Gemini 400 的修复已经落进 dev,而 v8.0.48 里一行都没有——今晚升级这条路走不通,能做的只有别让同一堵墙拖住号池。
antigravity_gemini_request.go 里,修复留下的三个符号一个都搜不到。5a8dbebab,做的是插件注册多个 OAuth 登录入口,与这两处 400 无关。9234217d 让配对按 call id 走,多余的 functionResponse 当场丢掉,两个文件加 161 行。10250d598 把两份去空 part 的写法合成一份,顺手把配对改成一次索引,两个文件加 80、删 89。11internal/signature/gemini_sanitize.go 第 83 行起。12parts: [{}] 那一种回 400,说必填字段 data 没有初始化;把 systemInstruction 整段去掉、写成 {}、或者让 parts 是空数组,同一份请求都回 200。1
antigravity_gemini_request.go 第 50–64 行:system_instruction 改名成 systemInstruction 之后,第 60 行紧跟着调清洗;第 50–52 行修工具响应失败时返回空 body 与 nil 错误。14
gemini_sanitize.go 第 124–152 行:第 129 行判「留下的一个不剩」,第 130 行删掉整段;第 142 行起的判空只看这个对象有没有字段,不看字段里写了什么。17selectGroupResponses 先用一趟扫描把响应按 id 与 name 建表,再按槽位对号入座。19
CallIDs,第 674 行的 selectGroupResponses 先用一趟索引建出 id 与 name 两张表,第 697 行开始按槽位取。20SanitizeGeminiSystemInstruction、removeEmptyGeminiSystemInstructionParts、isEmptyGeminiPartObject 三个词各 0 命中。5dbb70621,dev 已经是 250d5981。git ls-remote https://github.com/router-for-me/CLIProxyAPI HEAD refs/heads/main refs/heads/dev 'refs/tags/v8.0.48*'curl -s https://raw.githubusercontent.com/router-for-me/CLIProxyAPI/v8.0.48/internal/translator/antigravity/gemini/antigravity_gemini_request.go | grep -c SanitizeGeminiSystemInstruction234217d,两个文件加 161、删 2。1064c5354 把 HTTP/2 的 PROTOCOL_ERROR 判成瞬时传输错误:错误是 *url.Error、方法是 POST、http2.StreamError 的 StreamID 非零、错误码为 ErrCodeProtocol,四个条件同时成立才算。23url.Error 包装,已经输出之后不能再重放。buildUpstreamRequestOpenAIPassthrough,前面没有 stageCodexFingerprintIDs。27prompt_cache_key 时,WS 的请求没有 session_id,多轮缓存基本不命中。26codex_fingerprint_mode=full、gpt-5.6-luna,每轮约 11k 新 token。WS 不带 cache key 时第 2、3、4 轮命中都是 0;带上 cache key 或打上补丁后是 11264、22784、34304。26store=false 的 OAuth Responses WebSocket,也就是会进这座桥;客户端不带 prompt_cache_key。三条同时成立,这个缺口就在你身上。prompt_cache_key,桥会拿它当 session_id 用,所以缓存那半被掩盖了;指纹不一致那半仍落在它身上。26
openai_ws_http_bridge.go 第 500–520 行(v0.2.19):第 502 行建 buildUpstreamRequest,第 510 行直接调 buildUpstreamRequestOpenAIPassthrough,这三行里没有任何 staging 调用。30gateway.live.upstream_auth_mode,取值 codex_oauth 时用订阅 OAuth 直接建原生 Codex Live 调用;默认仍是 device_check。31GatewayLiveConfig 里只有会话时长一个字段,没有这个键。32grep -c 回 0,就说明这两处修复一行都没有。systemInstruction.parts;写成空数组、空对象或者干脆不带这一段,报障人都验过是 200。1github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
patch-diff.githubusercontent.com
github.com
raw.githubusercontent.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
status.openai.com
status.openai.com
status.anthropic.com
status.cloud.google.com
codex-reset.com
codex-reset.com
opentherank.com
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.