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

pre-releaseone hour ago
  • [Claude Structured Output Downgrade to Prompt Constraint & tool_choice 400 Auto-Heal] (Fixes #4033, Thanks to @ALight777):
    • Automatic Translation of Claude responseSchema to Prompt Instruction: Resolved an issue where Codex CLI requests to Claude Opus 5.5 (with thinking enabled) via OpenAI protocol /v1/responses requesting title/summary generation with text.format JSON Schema failed with HTTP 400 (tool_choice: type "tool" and "any" are not supported for this model) due to upstream Cloud Code synthesizing a forced tool choice. When targeting Claude models with structured output requests, the inbound pipeline proactively strips responseSchema and responseMimeType from outbound config while suppressing conflicting tools, injecting the JSON Schema constraint directly into the prompt; downstream output unquoting automatically peels outer markdown code fences, delivering clean raw JSON reliably without breaking native responseSchema execution for Gemini models. (Fixes #4033, Thanks to @ALight777)
    • Thinking & Forced Tool Choice Conflict Reactive Auto-Heal: Extended upstream error classifier in policy and auto-healing layers (policy.rs & auto_heal.rs) to detect tool_choice: type "tool" and "any" are not supported for this model. On error occurrence, the gateway automatically executes in-place healing (downgrading responseSchema or stripping conflicting thinkingConfig) and retries on the same account, completely resolving 400 failures for downstream agent clients. (Fixes #4033, Thanks to @ALight777)
  • [Windows + WSL Dual-Window Account Switch Sync] (Fixes #4030, Thanks to @funzza):
    • WSL Remote Environment Credential Sync: Resolved an issue in dual-window development (Windows local host + Remote-WSL) where account switching only affected the host, leaving WSL remote windows desynchronized on stale accounts. Added "Sync WSL Remote Environment Account" toggle and custom UNC path options under "Settings -> Account Settings";
    • Running State Probe Guard & Non-Blocking Async Injection: Introduced a lightweight wsl.exe probe guard with a 2-second timeout to avoid I/O hangs from accessing stopped WSL distributions; asynchronously dual-writes .gemini file credentials and remote server session databases (state.vscdb) via UNC paths for running distributions, followed by a graceful language_server reload signal without blocking the host switch workflow. (Fixes #4030, Thanks to @funzza)
  • [Mini Floating Window Header 360px Clipping & Overflow Fix] (Fixes #4029, PR #4034, Thanks to @QGBLWQ, @koeria):
    • Header Elastic Shrink & Compact Tab Layout: Resolved an issue in the fixed 360px width window where the mini floating window header tab capsule overflowed (up to 411px) due to inflexible child widths and wide horizontal padding, causing the left "Classic" tab to be clipped upon pinning and pushing right action buttons out of viewport. Added min-w-0 elastic shrink capability to the tab group and button items, tightened spacing to px-0.5 gap-0.5, and enabled single-line truncate on labels to eliminate overflow while keeping all five tabs and action buttons fully accessible. (Fixes #4029, PR #4034, Thanks to @QGBLWQ, @koeria)
  • [Official Hub Fingerprint Platform Selection & Independent Linux Feed] (PR #4025, Thanks to @ThermalEng):
    • Selectable Windows/Linux Platform Identity: Added client platform selection under "Settings -> Advanced -> Official Hub Client Fingerprint", enabling users to switch between the default calibrated Windows x64 (os_type=windows) and native Linux x64 (os_type=linux), fully unified across Tauri desktop, headless server, and web admin API. (PR #4025, Thanks to @ThermalEng)
    • Independent Linux Feed Perception & Anti-WAF Fingerprint Defense: Integrated the dedicated official Linux auto-update manifest (latest-x64-linux.yml) for informational update detection; strictly adheres to version and Piper CL co-origin pairing by treating update feeds as informational alerts only without auto-stitching uncalibrated versions onto outbound requests, keeping version and CL safely backed by local client probing or calibrated baseline to eliminate WAF anomalies. (PR #4025, Thanks to @ThermalEng)
  • [Upstream 1M Context Limit 400 Normalization & Claude Auto-Compact Deadlock Resolution] (Fixes #4024, PR #4027, Thanks to @koeria):
    • Anthropic prompt_too_long Error Normalization: Resolved a deadlock in Claude Code CLI when using 1M-context models (e.g. opus[1m]) where requests exceeding the upstream 1,048,576 token ceiling returned a generic api_error with raw Gemini text, preventing Claude Code from recognizing the error, inhibiting reactive auto-compaction, and failing subsequent /compact attempts. Accurately extracts token counts from 400 errors and normalizes Claude protocol responses into canonical invalid_request_error with "prompt is too long: {input} tokens > {max} maximum", enabling client-side reactive compaction while preserving raw upstream formats for native Gemini protocols. (Fixes #4024, PR #4027, Thanks to @koeria)
  • [Classic Antigravity Hot Switch Session State Atomic Alignment & Linux Onboarding Redirect Elimination] (Fixes #4026):
    • Cross-Platform Seamless Hot Switch & Dual Session State Synchronization: Resolved the root cause of Antigravity clients redirecting the main window to /onboarding?login=true during hot switch. Deep reverse engineering revealed that the frontend SPA tracks independent JSON session snapshots via authStateWithContextSentinelKey; previously updating only protobuf tokens left stale JSON session states that triggered signedOut fallbacks during subprocess reconnection, polluting Electron's internal navigation chain. Atomically synchronizes authStateWithContextSentinelKey (JSON session state), oauthTokenInfoSentinelKey, and cloudcode.userState in SQLite while enforcing pre-kill file fallback persistence (jetski-standalone-oauth-token), completely eliminating the URL pollution cascade caused by D-Bus/Keyring async latency. Completely reverts the artificial version gate from PR #4028, restoring true seamless hot switching across all platforms (Windows/macOS/Linux) without window restarts, page reloads, or losing unsaved editor buffers and terminal sessions. (Fixes #4026)
    • Agile Respawn Detection & Terms Persistence Sync: Streamlined language server reconnection probing from a heavy 500ms full system rescan to an agile 100ms known root process-tree tracker with old PID exclusion, reducing hot switch confirmation latency by over 60% down to ~1s; simultaneously synchronizes terms acceptance markers for the target account into app_storage.json, ensuring persistent onboarding compliance across subsequent reloads and sessions. (Fixes #4026)
  • [MAX_TOKENS Stream Semantic Truncation Preservation] (Fixes #4019, PR #4023, Thanks to @koeria):
    • Accurate Stream Truncation Semantics: Preserved valid finish_reason: "length" stream frames from being erroneously treated as abnormal stream failures in the pipeline self-healing layer, preventing redundant continuation retries and preserving original token usage. (Fixes #4019, PR #4023, Thanks to @koeria)
  • [Secondary Monitor Window Geometry Drift & Boundary Clipping Fix] (Fixes #3985, PR #4017, Thanks to @koeria):
    • Multi-Monitor Coordinate Alignment: Fixed window and tray popup positioning issues on secondary displays with non-zero origins and mixed DPI scale factors, eliminating coordinate drift and window clipping. (Fixes #3985, PR #4017, Thanks to @koeria)
  • [Per-Model & Series-Level Account Priority Overrides] (Ref #3879, PR #4011, Thanks to @koeria):
    • Fine-Grained Routing Priority: Added support for overriding account routing priorities per model family or individual model (e.g. claude-* / gemini-*) to meet dedicated pooling requirements. (Ref #3879, PR #4011, Thanks to @koeria)

  • [Claude 结构化输出降级为 Prompt 约束与 tool_choice 400 冲突自愈] (Fixes #4033, Thanks to @ALight777):
    • Claude 目标模型 responseSchema 自动转译为 Prompt 指令: 解决 Codex CLI 通过 OpenAI 协议 /v1/responses 调用 Claude Opus 5.5(开启思考能力)并携带 text.format JSON Schema 生成标题与摘要时,上游服务强制合成 tool_choice: { type: "tool", name: "response_schema" } 导致 Anthropic 报错 400(tool_choice: type "tool" and "any" are not supported for this model)的问题。入站流水线感知到 Claude 目标模型与结构化输出时,自动剥离出站 responseSchema 与 responseMimeType 并抑制冲突工具,将 JSON Schema 作为严格输出指令注入系统/用户提示词;配合出站层原生的 Markdown 代码块自动剥离,实现 100% 稳定交付合规的纯净 JSON,同时对 Gemini 等原生支持模型完整保留原生 Schema 调用。(Fixes #4033, Thanks to @ALight777)
    • 思考与强制工具冲突响应式自愈重试: 在流式与非流式故障自愈决策层(policy.rs & auto_heal.rs)扩展上游分类器,精准识别 tool_choice: type "tool" and "any" are not supported for this model 报错模式;触发后自动在同账号就地自愈降级(剥离 thinkingConfig 或将 responseSchema 转为 prompt 约束后重试),彻底根除 Codex 与下游客户端的 400 异常。(Fixes #4033, Thanks to @ALight777)
  • [Windows + WSL 双开切号联动与远程环境登录状态同步] (Fixes #4030, Thanks to @funzza):
    • 支持 WSL 远程环境凭据同步: 解决日常开发中同时打开 Windows 本地窗口与 Remote-WSL 远程开发窗口时,切号仅生效于 Windows 宿主机、导致 WSL 远程窗口依然停留在旧账号脱节的问题。在「设置 → 账号设置」中提供「同步更新 WSL 远程环境账号」开关与自定义路径配置;
    • 运行态探测门禁与跨环境异步安全注入: 针对 Windows 访问 stopped 状态 WSL 子系统可能导致 I/O 挂起的隐患,引入带 2 秒超时守护的 wsl.exe 运行态轻量门禁;在确认处于 running 状态后,通过 UNC 共享路径异步同步写入 WSL 用户下的 .gemini 文件凭据与 Remote Server 会话数据库(state.vscdb),并向语言服务发送无感重载信号,全程非阻塞后台派发,确保宿主机切号体验丝滑。(Fixes #4030, Thanks to @funzza)
  • [Windows 中文迷你悬浮窗顶栏 360px 裁切与溢出修复] (Fixes #4029, PR #4034, Thanks to @QGBLWQ, @koeria):
    • 顶栏弹性收缩与标签紧凑化排版: 解决在固定 360px 宽度窗口中,迷你悬浮窗顶栏 Tab 胶囊组因写死不可收缩与内边距偏大导致总宽超出(达 411px)、置顶时左侧「经典款」被裁切且右侧操作按钮被挤出可视区的问题。为 Tab 容器及各标签子项增加 min-w-0 弹性收缩能力,将内边距与间隙优化为紧凑的 px-0.5 gap-0.5,并在标签文字上启用 truncate 单行省略截断,彻底消除溢出裁切,保全全部五个标签与刷新/图钉/关闭按钮的完整可用性。(Fixes #4029, PR #4034, Thanks to @QGBLWQ, @koeria)
  • [官方 Hub 客户端指纹平台选择与 Linux 更新独立检测] (PR #4025, Thanks to @ThermalEng):
    • 支持 Windows/Linux 平台身份切换: 在「设置 → 高级设置 → 官方 Hub 客户端指纹」中增加出站平台选择,允许用户按需在默认已校准的 Windows x64(os_type=windows)与原生 Linux x64(os_type=linux)之间切换,同时全面打通 Tauri 桌面端、无头服务器(Headless)与 Web 管理接口。(PR #4025, Thanks to @ThermalEng)
    • Linux 专属更新清单独立感知与防风控指纹保护: 为 Linux 平台接入独立的官方自动更新清单(latest-x64-linux.yml)进行最新版本提示感知;严格遵守版本与 Piper 构建编号(CL)同源配对原则,更新提示仅作展示而不自动跨版本覆盖出站指纹,出站版本与 CL 依然基于本地探测或校准基线安全派生,彻底规避跨版本未配对特征触发上游 WAF 风控。(PR #4025, Thanks to @ThermalEng)
  • [上游 1M 物理上下文硬超限归一化与 Claude 自动压缩解死锁] (Fixes #4024, PR #4027, Thanks to @koeria):
    • Anthropic prompt_too_long 规范错误转译: 解决 Claude Code CLI 使用百万上下文模型(如 opus[1m])长工具链导致请求超过 1,048,576 Token 上限时,网关终态 400 返回通用 api_error 与 Gemini 原文导致客户端无法识别、既不触发响应式自动压缩也导致后续 /compact 死锁的问题。在错误处理层解析真实超限 Token 数与上限阈值,针对 Claude 协议规范化转译为 invalid_request_error 与 "prompt is too long: {input} tokens > {max} maximum",促使 Claude Code 自动触发上下文裁剪压缩,同时保持原生 Gemini 协议原生报文不受侵入。(Fixes #4024, PR #4027, Thanks to @koeria)
  • [经典版热切号会话状态原子同步与 Linux onboarding 重定向彻底修复] (Fixes #4026):
    • 全平台无感热切号与双会话状态原子对齐: 彻底解决 Antigravity 客户端在切号时主窗口跌入 /onboarding?login=true 导致热切号失效的根本原因。深入逆向发现客户端前端 SPA 通过 authStateWithContextSentinelKey 维护独立的前端 JSON 会话快照,以往仅注入 Protobuf 凭据结构导致前端状态机残留旧账号状态并在子进程断开期间跌入 signedOut,进而污染 Electron 内部导航链;通过在 SQLite 中原子同步最新账号的 authStateWithContextSentinelKey(JSON 会话对象)、oauthTokenInfoSentinelKey 与 cloudcode.userState,并在终止子进程前严格落盘保障文件级降级凭据(jetski-standalone-oauth-token),彻底消除了 D-Bus/Keyring 异步延迟与状态不一致导致的 URL 污染链。全面撤销 PR #4028 引入的人工版本门禁,全平台(Windows/macOS/Linux)均可实现主窗口不重启、页面不刷新、未保存缓冲区与终端现场完全保留的真正无感热切号。(Fixes #4026)
    • 切号敏捷感知与条款持久化同步: 针对客户端后台进程重建探测逻辑进行深度优化,将原先 500ms 粗粒度全系统重扫重构为基于已知根进程树驱动的 100ms 敏捷快速轮询,并精准排除已被终止的旧 PID,热切号完成确认耗时缩减至 1 秒左右(缩短 60% 以上);同时在切号阶段同步将新账号的条款同意标记原子持久化至 app_storage.json,确保客户端重载与后续会话均保持无感。(Fixes #4026)
  • [MAX_TOKENS 正常语义截断透传与流式异常中断精准收敛] (Fixes #4019, PR #4023, Thanks to @koeria):
    • 语义截断免被误判中断自愈: 修复 OpenAI 协议流式输出在达到模型最大 Token 上限(finish_reason: "length")时被流水线误判为异常中断并触发无效续写自愈的问题,准确区分自然截断与异常崩溃,保全标准用量与终止状态。(Fixes #4019, PR #4023, Thanks to @koeria)
  • [副显示器多屏窗口坐标偏移与越界裁剪修复] (Fixes #3985, PR #4017, Thanks to @koeria):
    • 跨屏窗口居中与托盘定位几何矫正: 彻底解决在多显示器非零原点、不同缩放比排布下,轻量模式窗口与托盘弹窗在副屏唤醒时产生坐标漂移、跑出屏幕或被视口边缘硬截断的问题。(Fixes #3985, PR #4017, Thanks to @koeria)
  • [分模型族与模型级账号优先级独立覆盖] (Ref #3879, PR #4011, Thanks to @koeria):
    • 细粒度路由权重覆盖配置: 支持在账号设置中针对特定模型族或单个模型(如 claude-* / gemini-*)覆盖全局账号优先级,满足混合号池下高阶模型专号专用的精细化调度需求。(Ref #3879, PR #4011, Thanks to @koeria)

What's Changed

Full Changelog: v5.0.4-beta.19...v5.0.5-beta.1

Don't miss a new Antigravity-Manager release

NewReleases is sending notifications on new releases.