- [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.jsonwith newly addedgemini-4-neon-{low,medium,high,xhigh},gemini-pro-orchestrator-neon,gemini-pro-orchestrator(Carbon),gemini-pro-orchestrator-argon,gemini-4-hydrogen-tiered-{high,xhigh}, andgemini-4-hydrogen-sonar; replaced synthetic Carbon placeholders with real upstream IDs (MODEL_PLACEHOLDER_M438/M437/M427), aligned 256KmaxOutputTokens(262144) and upstream lifecycle tags (New/Leaving Soon/Notice), and synchronizedmodel_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.rsextendedxhighwire output to integer100andminimal/ flash disabled thinking states to"MINIMAL"(using"LOW"when disabling non-flash thinkingLevel models) without mixingthinkingBudget: 0on level-only models; updatedBUG-04headroom parsing to recognize integerthinkingLevel: 100. (Ref #4019)
- Full-Stack Official Model Catalog Sync: Synced
- [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_bucketto retain exhausted0.0weekly/3P buckets omitted in proto3 JSON, and updatedAccount::update_quotato prevent expired buckets or retired dedicated G4 groups (Gemini 4 Argon) from resurrecting and shadowing activegemini-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 backendauto_switchand frontendmodelCategory/quotaDisplay; updatedtray::extract_key_quotas_from_datato prioritize dual-windowquota_groups(honoring weekly exhaustion) and modern Gemini 4 / Claude 5.5 models so macOS status bar no longer dropsG: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_groupto validatemonitored_modelsagainst the account's active pool and exclude retired/disabled models so weekly warmup never probes bare"claude"/"gemini"placeholders or retired IDs. (Refs #4048)
- Preserve Proto3-Omitted Exhausted Buckets & Prevent Stale Argon Resurrection: Added
- [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)
- Calibrated Hub Baseline Upgrade: Bumped the built-in official Hub client fingerprint baseline to
- [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_deltainOpenAIChatStreamHandlerto 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
maxOutputTokensonthinkingLevelmodels for structured JSON or constrained outputs to prevent truncated syntax; hard-blocks retiredgemini-3.1-flash-liteatis_retired_model_idwith HTTP 404 instead of 503 and aligns internal background tasks togemini-3.5-flash-lite. (Fixes #4019, PR #4035, Thanks to @cubelikeplayDaniel)
- Streaming Sliding Tail Buffer for Structured Outputs: Added
- [Isolated
responseSchemaAuto-Heal on Unsupported Forced Tool Choice] (Ref #4033, PR #4042, Thanks to @koeria):- Scoped Structured-Output Recovery: Scoped
tool_choiceunsupported error classification and auto-heal inpolicy.rsandauto_heal.rsstrictly to requests carryingresponseSchema, preventing unrelated forced tool-choice failures from triggering spurious schema downgrade retries. (Ref #4033, PR #4042, Thanks to @koeria)
- Scoped Structured-Output Recovery: Scoped
- [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
KeychainReadCoordinatorwith 30s TTL cache and 5-minute denial/cancel cooldown, routed passive status detection through passwordless local files first while preservingdelete + add -AACL self-healing on active writes, and coalesced concurrent frontendgetActiveClientsStatus()IPC calls inuseAccountStore. (Fixes #4043, PR #4051, Thanks to @cubelikeplayDaniel)
- Single-Flight Keychain Coordinator & Passwordless File Fallback: Added a per-item
- [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
7200sACK timeout and exposing the toggle in GUI settings, config files, and admin API. (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
- [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
authandservice_statusmiddlewares so API routes ending in.js/.css/.pngcan 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_htmlto prevent reflected XSS and enforcedprecheck_oauth_callbackactive flow state validation before acting. (PR #4039, Thanks to @zainulhasan) - Fail-Closed Credential Redaction in Stored Request URLs: Added
payload_audit::redact_uriacross request logs and IP access logs to mask credential query params (e.g.?key=) with an explicit allowlist. (PR #4039, Thanks to @zainulhasan)
- Close Static-Asset Path Suffix Auth Bypass: Removed suffix-based static-asset exemptions from
- [Portal
AccountSwitchMenuto Fix Sticky Header & Container Occlusion] (PR #4056, Thanks to @hugo1120):- Escape Sticky Cell & Overflow Stacking Contexts: Rendered
AccountSwitchMenuviacreatePortal(..., document.body)withposition: fixed(zIndex: 90), resolving menu occlusion and clipping behind sticky table headers (z-20), adjacent rows, andmotion.div/overflow containers across bothAccountTableandAccountCard. (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)
- Escape Sticky Cell & Overflow Stacking Contexts: Rendered
- [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": ""}) withoutfinishReasonbefore EOF, bypassing both non-streaming peek and thought-onlySTOPauto-heal and causing silent HTTP 200 empty responses. Updatedauto_heal.rsto 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) viaInboundThinkingPipeline::try_degrade_thinking_step(100/XHIGH -> HIGH -> MEDIUM -> LOWwith synchronizedlabels.model_enum). (Fixes #4055) - Emit Protocol Error Frames on Exhausted Premature EOF: Updated
stream_lifecycle.rspremature-EOF guards to invokeemit_initial_error/emit_error_finalizebefore propagatingErr, ensuring downstream clients never observe silent 200 empty streams if retries are exhausted. (Fixes #4055)
- Buffer Orphan Empty Frames & Auto-Replay with Thinking Step-Down: Resolved an issue on
- [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)
- 修复 Proto3 零值省略导致耗尽周桶丢失及僵尸组复活: 新增
- [官方 Hub 客户端指纹基准升级至 2.34.0 及 Web/Docker 手动更新体验增强] (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)
- 流式滑动尾缓冲剥离 Markdown 代码块围栏: 在
- [Claude
responseSchema强制工具冲突自愈隔离优化] (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 -AACL 自愈与缓存失效清理。(Fixes #4043, PR #4051, Thanks to @cubelikeplayDaniel) - 前端并发 IPC 请求合并: 在
useAccountStore中合并并发getActiveClientsStatus()调用,消除挂载、聚焦与刷新时的并发 IPC 突发风暴。(Fixes #4043, PR #4051, Thanks to @cubelikeplayDaniel)
- 单飞序列化读取 + TTL 缓存 + 拒绝冷却: 新增按条目粒度的单飞
- [长思考流非致命 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)
- 恢复长思考流自适应 HTTP/2 保活并消除 ~60 秒断连: 恢复出站连接的 HTTP/2 Keep-Alive 探测以防止中间链路在模型长思考静默期回收 TCP 连接,同时将 ACK 超时设为非致命的
- [网关安全纵深加固:鉴权绕过封堵、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)
- 脱离 sticky 单元格与滚动容器层叠裁切: 将
- [流式早退空流 / 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
- @chuanmu1314 made their first contribution in #4045
- @zainulhasan made their first contribution in #4039
- @hugo1120 made their first contribution in #4056
Full Changelog: v5.0.5-beta.1...v5.0.5-beta.2