github lbjlaq/Antigravity-Manager v5.0.5-beta.2
Antigravity Tools v5.0.5-beta.2

pre-releaseone hour ago
  • [Gemini 4 Official Catalog Sync, Pro Tier Carbon Support & Thinking Wire Format Alignment] (PR #4050, PR #4052, Thanks to @cubelikeplayDaniel):
    • Full-Stack Official Model Catalog Sync: Synced official_models.json with newly added gemini-4-neon-{low,medium,high,xhigh}, gemini-pro-orchestrator-neon, gemini-pro-orchestrator (Carbon), gemini-pro-orchestrator-argon, gemini-4-hydrogen-tiered-{high,xhigh}, and gemini-4-hydrogen-sonar; replaced synthetic Carbon placeholders with real upstream IDs (MODEL_PLACEHOLDER_M438/M437/M427), aligned 256K maxOutputTokens (262144) and upstream lifecycle tags (New / Leaving Soon / Notice), and synchronized model_specs.json, variant_mapping.rs, official_model.rs (including Claude 5.5), CLI/OpenClaw/OpenCode sync, and frontend pricing/display configs. (PR #4052, Thanks to @cubelikeplayDaniel)
    • Google AI Pro Tier Carbon Flagship Support: Enabled Gemini 4 Carbon quota reconciliation and shared pool fallback for Pro and Ultra tiers with full UI flagship eligibility checks while strictly isolating Free tier accounts. (PR #4050, Thanks to @cubelikeplayDaniel)
    • Gemini 4 Thinking Wire Format & Channel Purity: Aligned inbound.rs extended xhigh wire output to integer 100 and minimal / flash disabled thinking states to "MINIMAL" (using "LOW" when disabling non-flash thinkingLevel models) without mixing thinkingBudget: 0 on level-only models; updated BUG-04 headroom parsing to recognize integer thinkingLevel: 100. (Ref #4019)
  • [Merged 2-Group Quota Deep Fixes, Zombie Argon Isolation, Tray Status Bar Sync & Warmup 404 Prevention] (Fixes #4048, PR #4053, Thanks to @cubelikeplayDaniel):
    • Preserve Proto3-Omitted Exhausted Buckets & Prevent Stale Argon Resurrection: Added parse_quota_summary_bucket to retain exhausted 0.0 weekly/3P buckets omitted in proto3 JSON, and updated Account::update_quota to prevent expired buckets or retired dedicated G4 groups (Gemini 4 Argon) from resurrecting and shadowing active gemini-4-neon, gemini-4-carbon, or Flash models. (Fixes #4048, PR #4053, Thanks to @cubelikeplayDaniel)
    • 3P Group Matching & macOS Tray Status Bar G: Sync: Unified 3P/G4 codename isolation across backend auto_switch and frontend modelCategory/quotaDisplay; updated tray::extract_key_quotas_from_data to prioritize dual-window quota_groups (honoring weekly exhaustion) and modern Gemini 4 / Claude 5.5 models so macOS status bar no longer drops G:XX%, and triggered tray menu refreshes and stale selection cleanup on quota refresh and account switch. (Fixes #4048, PR #4053, Thanks to @cubelikeplayDaniel)
    • Warmup Model Resolution Anti-404: Updated scheduler::pick_model_for_group to validate monitored_models against the account's active pool and exclude retired/disabled models so weekly warmup never probes bare "claude"/"gemini" placeholders or retired IDs. (Refs #4048)
  • [Official Hub Fingerprint Baseline Upgrade to 2.34.0 & Web/Docker Manual Update UX] (Refs #4049):
    • Calibrated Hub Baseline Upgrade: Bumped the built-in official Hub client fingerprint baseline to 2.34.0 (CL 1026637980) across backend constants, API Proxy defaults, and localized examples. (Refs #4049)
    • Web/Docker Manual Fingerprint UX & Environment Overrides: Enhanced update version hints and manual fingerprint input workflows under "Settings -> Official Hub Client Fingerprint" (across all 12 locales) for Docker/headless environments without a local client, alongside environment variable overrides for GUI/CLI parity. (Refs #4049)
  • [OpenAI Streaming JSON Fence Stripping, thinkingLevel Headroom Guard & Retired Model 404 Gate] (Fixes #4019, PR #4035, Thanks to @cubelikeplayDaniel):
    • Streaming Sliding Tail Buffer for Structured Outputs: Added clean_structured_output_delta in OpenAIChatStreamHandler to peel markdown code fences cleanly across split stream chunks without delaying content delivery. (Fixes #4019, PR #4035, Thanks to @cubelikeplayDaniel)
    • thinkingLevel Structured Content Headroom & Retired Gate HTTP 404: Automatically expands small maxOutputTokens on thinkingLevel models for structured JSON or constrained outputs to prevent truncated syntax; hard-blocks retired gemini-3.1-flash-lite at is_retired_model_id with HTTP 404 instead of 503 and aligns internal background tasks to gemini-3.5-flash-lite. (Fixes #4019, PR #4035, Thanks to @cubelikeplayDaniel)
  • [Isolated responseSchema Auto-Heal on Unsupported Forced Tool Choice] (Ref #4033, PR #4042, Thanks to @koeria):
    • Scoped Structured-Output Recovery: Scoped tool_choice unsupported error classification and auto-heal in policy.rs and auto_heal.rs strictly to requests carrying responseSchema, preventing unrelated forced tool-choice failures from triggering spurious schema downgrade retries. (Ref #4033, PR #4042, Thanks to @koeria)
  • [Eliminate Repeated macOS Keychain Prompts via Serialized Passive Reads & Denial Cooldown] (Fixes #4043, PR #4051, Thanks to @cubelikeplayDaniel):
    • Single-Flight Keychain Coordinator & Passwordless File Fallback: Added a per-item KeychainReadCoordinator with 30s TTL cache and 5-minute denial/cancel cooldown, routed passive status detection through passwordless local files first while preserving delete + add -A ACL self-healing on active writes, and coalesced concurrent frontend getActiveClientsStatus() IPC calls in useAccountStore. (Fixes #4043, PR #4051, Thanks to @cubelikeplayDaniel)
  • [Non-Lethal HTTP/2 Keep-Alive for Long Thinking Streams & Configurable Toggle] (Fixes #4044, PR #4045, Thanks to @chuanmu1314):
    • Adaptive HTTP/2 Keep-Alive with 7200s ACK Window: Restored outbound HTTP/2 keep-alive pings to prevent ~60s idle disconnects during long reasoning pauses while keeping a non-lethal 7200s ACK timeout and exposing the toggle in GUI settings, config files, and admin API. (Fixes #4044, PR #4045, Thanks to @chuanmu1314)
  • [Gateway Security Hardening: Auth Bypass Fix, OAuth Callback XSS/State Guards & Log Redaction] (PR #4039, Thanks to @zainulhasan):
    • Close Static-Asset Path Suffix Auth Bypass: Removed suffix-based static-asset exemptions from auth and service_status middlewares so API routes ending in .js/.css/.png can no longer bypass checks. (PR #4039, Thanks to @zainulhasan)
    • Harden OAuth Callback HTML Escaping & Flow State Validation: Escaped callback error pages via utils::html::escape_html to prevent reflected XSS and enforced precheck_oauth_callback active flow state validation before acting. (PR #4039, Thanks to @zainulhasan)
    • Fail-Closed Credential Redaction in Stored Request URLs: Added payload_audit::redact_uri across request logs and IP access logs to mask credential query params (e.g. ?key=) with an explicit allowlist. (PR #4039, Thanks to @zainulhasan)
  • [Portal AccountSwitchMenu to Fix Sticky Header & Container Occlusion] (PR #4056, Thanks to @hugo1120):
    • Escape Sticky Cell & Overflow Stacking Contexts: Rendered AccountSwitchMenu via createPortal(..., document.body) with position: fixed (zIndex: 90), resolving menu occlusion and clipping behind sticky table headers (z-20), adjacent rows, and motion.div/overflow containers across both AccountTable and AccountCard. (PR #4056, Thanks to @hugo1120)
    • Header/Clip-Aware Smart Positioning & Unit Tests: Extracted pure positioning helpers (accountSwitchMenuPosition.ts) with 7 unit tests to compute flip placement against clipping ancestors and visible <thead> bounds with viewport fallback, RTL clamping, live scroll/resize sync, and auto-close when scrolled out of view. (PR #4056, Thanks to @hugo1120)
  • [In-Stream Progressive Auto-Heal for Premature Empty / Signature-Only SSE EOF] (Fixes #4055):
    • Buffer Orphan Empty Frames & Auto-Replay with Thinking Step-Down: Resolved an issue on gemini-4-hydrogen (thinkingLevel=HIGH) under long contexts where upstream returned a single signature-only empty SSE frame ({"thoughtSignature": "...", "text": ""}) without finishReason before EOF, bypassing both non-streaming peek and thought-only STOP auto-heal and causing silent HTTP 200 empty responses. Updated auto_heal.rs to buffer leading empty signature frames until substantive output arrives, and upon premature empty EOF within remaining budget, run up to 2 in-stream retries on the same account (preserving prompt cache) via InboundThinkingPipeline::try_degrade_thinking_step (100/XHIGH -> HIGH -> MEDIUM -> LOW with synchronized labels.model_enum). (Fixes #4055)
    • Emit Protocol Error Frames on Exhausted Premature EOF: Updated stream_lifecycle.rs premature-EOF guards to invoke emit_initial_error / emit_error_finalize before propagating Err, ensuring downstream clients never observe silent 200 empty streams if retries are exhausted. (Fixes #4055)

  • [Gemini 4 官方模型目录全面同步、Pro 档位 Carbon 接入与思考协议线格式对齐] (PR #4050, PR #4052, Thanks to @cubelikeplayDaniel):
    • 官方模型目录与前后端全栈同步: 同步官方最新目录新增 gemini-4-neon-{low,medium,high,xhigh}、gemini-pro-orchestrator-neon、gemini-pro-orchestrator(Carbon)、gemini-pro-orchestrator-argon、gemini-4-hydrogen-tiered-{high,xhigh} 与 gemini-4-hydrogen-sonar,替换真实 Carbon 占位映射(MODEL_PLACEHOLDER_M438/M437/M427),对齐 256K 输出上限(262144)及生命周期标签(New / Leaving Soon / Notice),并完整打通 model_specs.json、variant_mapping.rs、official_model.rs(含 Claude 5.5 识别)、cli_sync/openclaw_sync/opencode_sync 与前端模型展示及计费映射。(PR #4052, Thanks to @cubelikeplayDaniel)
    • Google AI Pro 档位 Carbon 旗舰模型支持: 为 Pro 与 Ultra 账号接入 gemini-4-carbon 配额同步与兜底共享逻辑,同步更新旗舰能力校验与分组展示(严格隔离 Free 账号)。(PR #4050, Thanks to @cubelikeplayDaniel)
    • Gemini 4 思考线格式精确对齐与纯等级通道纯净性: 在 inbound.rs 中将扩展高思考档位 xhigh 对齐官方整数 wire 格式 100、将 minimal 及 Flash/Lite 关闭思考态对齐为 thinkingLevel: "MINIMAL"(Pro 等级模型关闭发送 "LOW"),纯 thinkingLevel 模型关闭思考时不混入 thinkingBudget: 0;同时兼容 BUG-04 数值等级识别,确保 100 正确保留高思考内容余量。(Ref #4019)
  • [Google 2 组融合配额深度修复、退役 Argon 防复活、托盘状态栏同步与预热防 404] (Fixes #4048, PR #4053, Thanks to @cubelikeplayDaniel):
    • 修复 Proto3 零值省略导致耗尽周桶丢失及僵尸组复活: 新增 parse_quota_summary_bucket 挽回 remainingFraction 为 0.0 时被 Proto3 JSON 省略的已耗尽配额桶(如 3p-weekly、gemini-weekly),并在 Account::update_quota 中清理已过期桶与已退役的 Gemini 4 Argon 僵尸分组,严禁其污染 gemini-4-neon、gemini-4-carbon 等在用模型。(Fixes #4048, PR #4053, Thanks to @cubelikeplayDaniel)
    • 3P 组精准匹配与托盘/状态栏百分比修复: 统一前后端 3p/claude/gpt 与 G4 专属代号隔离逻辑;重写托盘状态栏双窗口配额提取 extract_key_quotas_from_data,优先按 quota_groups(含周配额耗尽判定)并扩展 Gemini 4 / Claude 5.5 模型匹配,修复 macOS 状态栏显示 C:xx% 而丢失 G: 的问题,同时在刷新配额和切号后实时刷新托盘并清理失效选中 ID。(Fixes #4048, PR #4053, Thanks to @cubelikeplayDaniel)
    • 周配额预热模型解析防 404: 修正 scheduler.rs 的 pick_model_for_group,校验 monitored_models 必须存在于账号真实激活号池中并过滤已下线/禁用条目,杜绝将 "claude" / "gemini" 逻辑分组占位名或退役模型 ID 发往上游触发 404。(Refs #4048)
  • [官方 Hub 客户端指纹基准升级至 2.34.0 及 Web/Docker 手动更新体验增强] (Refs #4049):
    • 内置官方 Hub 指纹基准升级: 将默认校准指纹基准升级至 2.34.0(CL 1026637980),同步更新后端常量、前端 API 代理页默认值与中英文示例。(Refs #4049)
    • Web/Docker 手动填写与环境变量覆盖支持: 针对容器与无头服务器无本地客户端的场景,优化「设置 → 官方 Hub 客户端指纹」的版本更新检测提示与手动填写交互(覆盖 12 种语言),并新增环境变量覆盖支持以保证 GUI 与 Headless/CLI 配置面一致。(Refs #4049)
  • [OpenAI 流式 JSON Fence 剥离、thinkingLevel 内容余量防截断与退役模型门禁 404] (Fixes #4019, PR #4035, Thanks to @cubelikeplayDaniel):
    • 流式滑动尾缓冲剥离 Markdown 代码块围栏: 在 OpenAIChatStreamHandler 中实现流式滑动尾缓冲(clean_structured_output_delta),零额外延迟跨 chunk 清除结构化输出外层 Markdown 围栏。(Fixes #4019, PR #4035, Thanks to @cubelikeplayDaniel)
    • thinkingLevel 模型内容安全余量保护与退役模型 404 硬拦截: 当客户端为 thinkingLevel 模型传入较小 max_tokens 或结构化 JSON 输出时自动扩充 maxOutputTokens 防止思维链挤占正文导致 JSON 截断;在模型硬门禁 is_retired_model_id 直接对已退役的 gemini-3.1-flash-lite 返回 HTTP 404,消除 SDK 无效指数重试,并将后台内部任务模型对齐至活跃的 gemini-3.5-flash-lite。(Fixes #4019, PR #4035, Thanks to @cubelikeplayDaniel)
  • [Claude responseSchema 强制工具冲突自愈隔离优化] (Ref #4033, PR #4042, Thanks to @koeria):
    • 精准隔离非结构化输出场景的 tool_choice 自愈: 优化 policy.rs 与 auto_heal.rs 中的报错分类与降级策略,仅对真正携带 responseSchema 的请求执行 Schema 降级自愈,避免普通强制工具调用误触发无意义的降级重试。(Ref #4033, PR #4042, Thanks to @koeria)
  • [macOS Keychain 重复密码弹窗彻底根治] (Fixes #4043, PR #4051, Thanks to @cubelikeplayDaniel):
    • 单飞序列化读取 + TTL 缓存 + 拒绝冷却: 新增按条目粒度的单飞 KeychainReadCoordinator(30 秒有效/未命中缓存 + 5 分钟拒绝/取消授权冷却),被动探测 detect_active_clients_status 优先读取免密本地凭据文件并跳过不必要的 Keychain 探针;同时保持主动写入时的 delete + add -A ACL 自愈与缓存失效清理。(Fixes #4043, PR #4051, Thanks to @cubelikeplayDaniel)
    • 前端并发 IPC 请求合并: 在 useAccountStore 中合并并发 getActiveClientsStatus() 调用,消除挂载、聚焦与刷新时的并发 IPC 突发风暴。(Fixes #4043, PR #4051, Thanks to @cubelikeplayDaniel)
  • [长思考流非致命 HTTP/2 保活机制与全平台可配置开关] (Fixes #4044, PR #4045, Thanks to @chuanmu1314):
    • 恢复长思考流自适应 HTTP/2 保活并消除 ~60 秒断连: 恢复出站连接的 HTTP/2 Keep-Alive 探测以防止中间链路在模型长思考静默期回收 TCP 连接,同时将 ACK 超时设为非致命的 7200s 以杜绝网络抖动误杀正常长流。(Fixes #4044, PR #4045, Thanks to @chuanmu1314)
    • 全平台保活配置面打通: 在 GUI 超时设置、配置文件与管理端 API 中开放 HTTP/2 保活开关,兼容桌面端、Web 与无头部署。(Fixes #4044, PR #4045, Thanks to @chuanmu1314)
  • [网关安全纵深加固:鉴权绕过封堵、OAuth 回调防护与日志凭据脱敏] (PR #4039, Thanks to @zainulhasan):
    • 封堵静态资源后缀鉴权绕过: 移除鉴权与服务状态中间件中按 .js/.css/.png 等路径后缀放行静态资源的规则,消除针对代理与管理接口的路径后缀绕过风险。(PR #4039, Thanks to @zainulhasan)
    • OAuth 回调页 XSS 防护与 Flow State 校验: 通过 escape_html 统一转义 /auth/callback 错误页中的动态文本,并在执行取消流或换码前强制校验有效且匹配的 state 参数。(PR #4039, Thanks to @zainulhasan)
    • 请求日志 URL 凭据参数闭环脱敏: 新增 payload_audit::redact_uri,对请求日志与 IP 访问日志中的查询参数(如 ?key=、token 等)实施 fail-closed 统一脱敏,仅放行明确统计字段与思考会话标识头。(PR #4039, Thanks to @zainulhasan)
  • [账号切换菜单 Portal 化与表头/容器防遮挡智能定位] (PR #4056, Thanks to @hugo1120):
    • 脱离 sticky 单元格与滚动容器层叠裁切: 将 AccountSwitchMenu 切换菜单通过 createPortal(..., document.body) 与 position: fixed(zIndex: 90)渲染至顶层,彻底修复账号列表视图(AccountTable)和卡片视图(AccountCard)中弹出菜单被表头「操作」列、相邻行或滚动容器遮挡裁切的问题。(PR #4056, Thanks to @hugo1120)
    • 表头/容器感知定位与滚动联动: 新增定位工具 accountSwitchMenuPosition.ts 与单元测试,按祖先裁剪容器与可见 <thead> 底部空间自动决策上下翻转与水平边界夹紧(兼容 RTL),并在滚出可见区或切换/禁用状态变更时自动收起。(PR #4056, Thanks to @hugo1120)
  • [流式早退空流 / signature-only EOF 流内渐进自愈与错误显式透出] (Fixes #4055):
    • 早退空流(无正文/思考/finishReason 即 EOF)同连接渐进降级重放: 解决 gemini-4-hydrogen(thinkingLevel=HIGH)等模型在长上下文流式请求下,上游仅返回一帧 {"thoughtSignature": "...", "text": ""} 空壳即 TCP EOF、同时绕过首包 peek 与纯思考 STOP 自愈并向客户端返回静默 HTTP 200 空响应的问题。在通用流水线 auto_heal.rs 中先暂存未产出实字的 signature-only 空壳帧(避免孤立空帧泄漏),一旦检测早退 EOF,在剩余全局预算内保持原连接心跳并同账号保留 Prompt Cache 发起最多 2 次渐进降级重放(try_degrade_thinking_step:XHIGH/100 → HIGH → MEDIUM → LOW,并同步更新 labels.model_enum)。(Fixes #4055)
    • 耗尽后显式下发协议错误帧杜绝静默空回复: 当流内重放依然无实质内容即 EOF 时,在 stream_lifecycle.rs 无内容 EOF 守卫中补齐 emit_initial_error / emit_error_finalize 协议错误帧发射并维持错误透传,消除客户端仅收到 HTTP 200 + 心跳却无任何报错与正文的静默失败。(Fixes #4055)

What's Changed

  • fix(proxy): 修复结构化输出流式围栏残留、thinkingLevel预算截断与下线模型门禁语义 (Fixes #4019) by @cubelikeplayDaniel in #4035
  • fix(proxy): demote responseSchema for models that reject forced tool choice by @koeria in #4042
  • feat(models): support Gemini 4 Carbon models for Google AI Pro tier by @cubelikeplayDaniel in #4050
  • fix(proxy): 恢复 HTTP/2 保活,修复长思考流约 60 秒断开 by @chuanmu1314 in #4045
  • fix(security): close static-suffix auth bypass, harden OAuth callback, redact credentials in request logs by @zainulhasan in #4039
  • fix(macos): serialize Keychain passive reads with TTL cache and denial cooldown (Fixes #4043) by @cubelikeplayDaniel in #4051
  • feat(models): sync Gemini 4 Neon, Orchestrators, Hydrogen Tiered/Sonar & upstream tags by @cubelikeplayDaniel in #4052
  • fix(quota): fix exhausted 3p/weekly buckets, stale Argon resurrection, and tray status bar (Fixes #4048) by @cubelikeplayDaniel in #4053
  • fix(accounts,ui): portal AccountSwitchMenu to fix sticky header and container occlusion by @hugo1120 in #4056

New Contributors

Full Changelog: v5.0.5-beta.1...v5.0.5-beta.2

Don't miss a new Antigravity-Manager release

NewReleases is sending notifications on new releases.