Evolving from v5.0.3 to v5.0.4 through 20 preview releases, this version delivers a comprehensive refactor of streaming zero-tampering contracts, stealth sideloading and anti-degradation architectures, seamless official Hub & IDE parity, and a resilient scheduling/self-healing core:
- Streaming & Thinking Resilience: Canonical
finishReason: "STOP"and[DONE]frames for thought-only streams with zero content tampering, preserving real token usage; precise streaming truncation semantics preservingMAX_TOKENSand adding model-family boundaries for tier promotion; thinking cache corruption protection; Claude/Gemini thought folding and discriminated object union merging (Fixes #4008, #4006, #3997, PR #4007, #4005, #3878, #3866, #3867). - WAF Evasion & Prompt Engineering: Injected
[SYSTEM MANDATE]authority anchor to completely eliminate model instruction decay, rule forgetting, and blindls -Runder stealth sideloading; neutralized upstream WAF pseudo-429 triggers across Pi agent codemode, WorkBuddy, Codex, and DSH; introduced fine-grained rule scope selectors (all/prompt/tools) (Ref #3997, Fixes #3981, #3982, #3983, PR #3986). - Ecosystem Parity & Protocol Robustness: Official Hub baseline upgraded to 2.33.0 (CL 1023160026) with local binary dynamic extraction; Antigravity IDE dual-write seamless hot-switch and onboarding terms suppression; Gemini 4+ dynamic codename extraction with Neon quota UI migration; enforced
type: arrayon nested tool schemas (Fixes #3998, #4001, #3745, #3842). - Scheduler Core & Quota Self-Healing: CacheFirst sticky session deadlock prevention via auto-unbinding and pool failover; mutual exclusion between capacity exhaustion and budget degradation; cache-settling delay grace window maximizing long-context prefix reuse; per-model-family account priority scheduling and 403 authority convergence (Fixes #4002, #4000, #3991, #3863, #3875, PR #3879, #3881, #3882).
- Operations & Multi-Platform: 403 recovery visibility gate and transparent probe error surfacing; warmup confirmation transparency; dual-track updates with Homebrew switching and instant channel linkage; Windows deadlock resolution and Termux Android ARM64 support (Ref #3995, #4009, Fixes #3993, #3818, PR #4010, #3996).
从 v5.0.3 演进至 v5.0.4,历经 20 个预览版持续迭代,系统完成了流式响应零篡改规范重构、WAF 隐身侧载与防降智架构升级、官方 Hub 与 IDE 生态无感对齐及调度自愈内核加固:
- 流式响应与思考协议: 纯思考空回复遵循零正文篡改规范输出
finishReason: "STOP"与[DONE]并保全 Token 用量;流式思考截断判定精准收敛至异常中断,透传MAX_TOKENS等正常终止,增加高容量提档模型系列边界守卫;思考缓存防污染;支持 Claude/Gemini 思考块折叠与 Schema 联合类型智能合并 (Fixes #4008, #4006, #3997, PR #4007, #4005, #3878, #3866, #3867)。 - WAF 防护与提示词工程: 注入
[SYSTEM MANDATE]权威执行锚点,彻底消除长提示词隐身侧载下的模型降智与规则遗忘;全面中和 Pi agent codemode、WorkBuddy、Codex 与 DSH 触发的 WAF 伪 429 风控;支持规则细粒度生效范围(all/prompt/tools)(Ref #3997, Fixes #3981, #3982, #3983, PR #3986)。 - 生态兼容与协议对齐: 官方 Hub 指纹基准升级至 2.33.0 (CL 1023160026) 并支持本地 binary 动态同源提取;Antigravity IDE 支持凭据双写无感热切号与条款声明免弹窗;动态提取 Gemini 4+ 代号并迁移 Neon 配额;补齐工具嵌套数组
type: array声明 (Fixes #3998, #4001, #3745, #3842)。 - 调度内核与配额自愈: 粘性会话原地重试耗尽防死锁解绑与多号池故障转移;容量枯竭与思考降级互斥隔离;长文本 KV 缓存就绪防竞争延迟;支持 Gemini / Claude 分模型族独立优先级调度与 403 恢复权威收敛 (Fixes #4002, #4000, #3991, #3863, #3875, PR #3879, #3881, #3882)。
- 运维与多端适配: 修复 403 解限门禁并透出真实测活错误;预热机制弹窗说明与 Token 提示;在线更新与 Homebrew 双轨自由切换与通道即时联动;修复 Windows 死锁并支持 Termux Android ARM64 (Ref #3995, #4009, Fixes #3993, #3818, PR #4010, #3996)。
What's Changed
- fix(docker): 修复 HEALTHCHECK 无超时泄露与缺少 tini init 导致容器假死 503 (Fixes #3850) by @cubelikeplayDaniel in #3854
- fix(proxy): 上传预算只允许放宽不允许收紧,根治大请求体 15s 误杀 by @wakeupnotfound in #3857
- fix(pipeline): stop billing base64 media embedded in text as text tokens (Ref #3830) by @mclinyeshi in #3864
- fix(pipeline): fold commentary wedged between tool call and result to stop Claude prefill 400 on Responses by @mclinyeshi in #3866
- fix(pipeline): apply commentary folding to Gemini targets to prevent cache invalidation (Ref #3866) by @mclinyeshi in #3867
- fix(proxy,quota): 根治跨模型重置时间污染与零配额到期自愈,发布 5.0.4-beta.1 (Ref #3840, #3845) by @cubelikeplayDaniel in #3852
- fix(proxy,probe): 统合 Web 端测活自动调度选号与凭据刷新 (Ref #3861, Follow-up to #3852) by @cubelikeplayDaniel in #3868
- fix(account,probe): 测活成功按模型与受限原因安全自愈,拦截 TOS 封禁与跨模型误解限 (Ref #3861, Follow-up to #3852) by @cubelikeplayDaniel in #3869
- fix(pedal): 提升蹬额度稳定性与多账号自愈,优化浅色主题与待蹬账号视觉标识 by @cubelikeplayDaniel in #3870
- feat(accounts): 启动后按账号上限异步刷新配额并新增工具栏入口 (Ref #3726) by @jeikl in #3871
- fix(ui): 修复添加账号按钮 z-index 穿透更新弹窗缺陷 (Fixes #3853) by @cubelikeplayDaniel in #3872
- fix(account,ui): 修复配额刷新冲掉403状态缺陷并新增异常封禁快捷筛选 (Fixes #3863, Ref #3865) by @cubelikeplayDaniel in #3875
- chore(release): update changelog for 5.0.4-beta.1 release (Ref #3863, #3865, #3853, #3871) by @cubelikeplayDaniel in #3877
- fix(proxy): merge object-only anyOf/oneOf unions instead of keeping one branch by @snailb1007 in #3878
- fix(pedal): 消除蹬额度模式重入死循环与Windows文件锁风暴 (Fixes #3881) by @cubelikeplayDaniel in #3882
- feat(scheduler): support independent Gemini / Claude model-family priorities per account by @vecyang1 in #3879
- chore(release): bump version to 5.0.4-beta.3 and update changelog (Ref #3879, #3881) by @cubelikeplayDaniel in #3884
- feat(integration,ui): support account switching and detection for Antigravity IDE Plugin (antigravity-acp) (Fixes #3842) by @Al-Taie in #3844
- chore(release): bump version to 5.0.4-beta.4 and update changelog (Fixes #3842, Ref #3844) by @cubelikeplayDaniel in #3890
- chore(governance): add @cubelikeplayDaniel to CODEOWNERS and project maintainers by @cubelikeplayDaniel in #3888
- fix(proxy): 锁定开场注入边界在首个 model 轮之前,根治跨轮次新提问时历史前缀回溯改写导致的 KV 缓存失效 (Ref #3764, #3769, #3867) by @mclinyeshi in #3889
- chore(release): bump version to 5.0.4-beta.5 and update changelog (PR #3889, Ref #3764, #3769, #3867, #3842, #3844) by @cubelikeplayDaniel in #3891
- fix(proxy): 修复缓存优先模式被配额均衡抢占解绑与流式 QoS 丢失估算 Token 导致的连环切号 (Ref #3639, #3889, #3891) by @mclinyeshi in #3893
- fix(proxy): coordinate account rotation with upstream fallback and large payload limits (Ref #3763, #3821) by @cubelikeplayDaniel in #3892
- fix(proxy): eliminate quota disparity unbinding to guarantee sticky session cache preservation (Ref #3639, #3893) by @cubelikeplayDaniel in #3895
- fix(sanitizer): avoid doubled punctuation in identity continuation cause error 429 by @ThermalEng in #3902
- fix(proxy): keep CacheFirst sticky account on transport reset and first-byte terminals (Ref #3821, #3893, #3639) by @mclinyeshi in #3899
- test(sanitizer): harden identity continuation punctuation coverage (PR #3902, Ref #3508) by @jeikl in #3905
- fix(proxy): 收敛上传超时策略并消除 504 重传放大 (Ref #3763, #3821, #3639, #3893, #3899) by @jeikl in #3906
- fix(proxy,sanitizer): 修复 WAF 429 身份改写问题并新增风控提示词清理方案 by @jeikl in #3913
- fix(quota,proxy): restore dynamic discovery and upstream limits for Gemini 4 models (Fixes #3932) by @jeikl in #3933
- fix(proxy,ui): return 503 no available accounts at model gate for known models (Ref #3932) by @jeikl in #3936
- fix(proxy): preserve AwaitFirstByte terminal markers across Daily and Sandbox endpoints (Ref #3639, #3763, #3821, #3893, #3899, #3906) by @mclinyeshi in #3935
- fix(proxy,ui): strip -online suffix, hierarchical model catalog with default bare testing, Gemini icon & dropdown fix (Fixes #3937) by @cubelikeplayDaniel in #3938
- ci(release): build Android ARM64 headless server and attach release assets (Fixes #3818) by @cubelikeplayDaniel in #3946
- fix(proxy,thinking_store): tighten compaction boundary matching to prevent false cache resets by @mclinyeshi in #3945
- fix(proxy): prevent identical plain-text ThinkingStore turns from overwriting thoughtSignature by @mclinyeshi in #3944
- fix(proxy,pipeline): preserve CacheFirst bound account on transient 500/503/529 and protect sticky binding (Ref #3639, #3821, #3893, #3899, #3935) by @mclinyeshi in #3943
- fix(qos,pipeline): reconcile QoS TTFT against upstream usageMetadata to avoid false strikes on cache misses by @mclinyeshi in #3942
- feat(models,proxy,ui): upgrade Hub UA to 2.32.1 and integrate gemini-pro-orchestrator-g1-pro (Ref #3745, #3937) by @cubelikeplayDaniel in #3949
- chore(release): bump version to 5.0.4-beta.10 and update changelog (Fixes #3818, #3937, Ref #3614, #3639, #3745, #3821, #3893, #3899, #3935, #3944, Thanks to @cubelikeplayDaniel, @mclinyeshi) by @cubelikeplayDaniel in #3950
- refactor(proxy): purge obsolete placebo mechanisms, dead caches, and write-only estimators (Ref #3639, #3895, #3898) by @cubelikeplayDaniel in #3898
- fix(proxy): 修复 Antigravity CLI 心跳崩溃、JSON 模式围栏剥离与厂牌清洗作用域 (Fixes #3940, Fixes #3951, Fixes #3952, Ref #3941) by @cubelikeplayDaniel in #3954
- revert(proxy): revert 5bdc267 to merge community PR #3953 by @cubelikeplayDaniel in #3955
- fix(proxy): 对 Gemini 流禁用注入式 ': ping' SSE 注释心跳,修复 Antigravity CLI (agy) 解析失败 (Fixes #3952) by @koeria in #3953
- chore(release): bump version to 5.0.4-beta.11 and update changelog by @cubelikeplayDaniel in #3957
- fix(account): sink periodic quota auto-refresh into rust background worker (Fixes #3958) by @cubelikeplayDaniel in #3964
- fix(proxy): enforce co-calibrated hub fingerprint and wrap flat envelope bodies to prevent upstream TOS bans (Fixes #3956) by @cubelikeplayDaniel in #3959
- feat(token-stats): aggregate model variants by family with expandable tree drill-down and condensed pricing by @cubelikeplayDaniel in #3963
- chore(release): bump version to 5.0.4-beta.12 and update changelog by @cubelikeplayDaniel in #3966
- fix(proxy): neutralize agent tool directives against fake 429 and decouple model quota normalization (Fixes #3965, Release v5.0.4-beta.13) by @cubelikeplayDaniel in #3967
- fix(proxy): restore MCP namespace fields for Codex Responses (Fixes #3979) / 修复 Codex Responses 的 MCP namespace 字段 by @Lucas-Qh-Lai in #3980
- fix(oauth): request aicode scope for AGY CLI 1.5.x by @ThermalEng in #3978
- fix(proxy): add full support for Antigravity GCP PAYGO tier and restore project ID commands (Fixes #3960) by @cubelikeplayDaniel in #3970
- fix(proxy): fix OpenAI adapter sanitization timing and normalize Codex client persona (Fixes #3981, #3982, #3983, Ref #3984) by @cubelikeplayDaniel in #3986
- fix(quota): 配额端点移除 Prod,与推理端点保持一致 (Fixes #3987) by @vecyang1 in #3988
- fix(quota): quotaInfo 省略 remainingFraction 时按 0 处理,避免耗尽模型显示 100% (Ref #3987) by @vecyang1 in #3989
- fix(proxy): 400 "Thinking level is unsupported" 时同账号钳制为 HIGH 重试 (Fixes #3991) by @vecyang1 in #3992
- fix(app): avoid Windows RwLock deadlock when restoring main window from lightweight mode (Fixes #3993) by @koeria in #3996
- fix(proxy): reject degraded empty-thought records & feat(quota): migrate quota UI to Neon (Fixes #3997, Fixes #3745) by @cubelikeplayDaniel in #4005
- fix(proxy): preserve max_tokens stream truncation & guard high-capacity promotion (Fixes #4006) by @cubelikeplayDaniel in #4007
- fix(account,ui): 非 403/停用账号不再误显清除 403 按钮并透出真实测活错误 (Ref #3995) by @vecyang1 in #4010
New Contributors
- @snailb1007 made their first contribution in #3878
- @vecyang1 made their first contribution in #3879
- @Al-Taie made their first contribution in #3844
- @ThermalEng made their first contribution in #3902
- @koeria made their first contribution in #3953
- @Lucas-Qh-Lai made their first contribution in #3980
Full Changelog: v5.0.3...v5.0.4