- [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/responsesrequesting title/summary generation withtext.formatJSON 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 stripsresponseSchemaandresponseMimeTypefrom 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 detecttool_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)
- 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
- [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.exeprobe guard with a 2-second timeout to avoid I/O hangs from accessing stopped WSL distributions; asynchronously dual-writes.geminifile 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-0elastic shrink capability to the tab group and button items, tightened spacing topx-0.5 gap-0.5, and enabled single-linetruncateon labels to eliminate overflow while keeping all five tabs and action buttons fully accessible. (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
- [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 nativeLinux 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)
- Selectable Windows/Linux Platform Identity: Added client platform selection under "Settings -> Advanced -> Official Hub Client Fingerprint", enabling users to switch between the default calibrated
- [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 genericapi_errorwith raw Gemini text, preventing Claude Code from recognizing the error, inhibiting reactive auto-compaction, and failing subsequent/compactattempts. Accurately extracts token counts from 400 errors and normalizes Claude protocol responses into canonicalinvalid_request_errorwith"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)
- Anthropic prompt_too_long Error Normalization: Resolved a deadlock in Claude Code CLI when using 1M-context models (e.g.
- [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=trueduring hot switch. Deep reverse engineering revealed that the frontend SPA tracks independent JSON session snapshots viaauthStateWithContextSentinelKey; previously updating only protobuf tokens left stale JSON session states that triggeredsignedOutfallbacks during subprocess reconnection, polluting Electron's internal navigation chain. Atomically synchronizesauthStateWithContextSentinelKey(JSON session state),oauthTokenInfoSentinelKey, andcloudcode.userStatein 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)
- Cross-Platform Seamless Hot Switch & Dual Session State Synchronization: Resolved the root cause of Antigravity clients redirecting the main window to
- [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)
- Accurate Stream Truncation Semantics: Preserved valid
- [Secondary Monitor Window Geometry Drift & Boundary Clipping Fix] (Fixes #3985, PR #4017, Thanks to @koeria):
- [Per-Model & Series-Level Account Priority Overrides] (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.formatJSON 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)
- Claude 目标模型 responseSchema 自动转译为 Prompt 指令: 解决 Codex CLI 通过 OpenAI 协议
- [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):
- [官方 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)
- 支持 Windows/Linux 平台身份切换: 在「设置 → 高级设置 → 官方 Hub 客户端指纹」中增加出站平台选择,允许用户按需在默认已校准的
- [上游 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)
- Anthropic prompt_too_long 规范错误转译: 解决 Claude Code CLI 使用百万上下文模型(如
- [经典版热切号会话状态原子同步与 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)
- 全平台无感热切号与双会话状态原子对齐: 彻底解决 Antigravity 客户端在切号时主窗口跌入
- [MAX_TOKENS 正常语义截断透传与流式异常中断精准收敛] (Fixes #4019, PR #4023, Thanks to @koeria):
- [副显示器多屏窗口坐标偏移与越界裁剪修复] (Fixes #3985, PR #4017, Thanks to @koeria):
- [分模型族与模型级账号优先级独立覆盖] (Ref #3879, PR #4011, Thanks to @koeria):
What's Changed
- fix(proxy): Gemini thinkingBudget=-1 视为动态思考开启,不再误判为关闭思考 (Fixes #4012) by @vecyang1 in #4014
- fix(stats): heal token cache hit rate overflow & cost deflation by @cubelikeplayDaniel in #4015
- chore(release): bump version to 5.0.4-beta.20 (Fixes #4012, PR #4014, PR #4015) by @cubelikeplayDaniel in #4016
- feat(scheduler,ui): support per-model and series-level account priority overrides (Ref #3879) by @vecyang1 in #4011
- fix(desktop,tray): resolve secondary monitor window coordinates drift and boundary clipping (Fixes #3985) by @cubelikeplayDaniel in #4017
- fix(proxy): MAX_TOKENS semantic truncation no longer misreported as stream interruption by @koeria in #4023
Full Changelog: v5.0.4-beta.19...v5.0.5-beta.1