Skip to content

fix(quota): 清空 rate_limit_reached_type 与 model_picker_upsell 彻底解决前端硬锁定 - #2667

Merged
BigPizzaV3 merged 1 commit into
BigPizzaV3:mainfrom
ViceEye:codex/fix-composer-quota-unlock
Oct 25, 2026
Merged

BigPizzaV3 merged 1 commit into
BigPizzaV3:mainfrom
ViceEye:codex/fix-composer-quota-unlock

Conversation

@ViceEye

@ViceEye ViceEye commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

问题

在关闭增强模式(enhancementsEnabled: false)并启用「官方登录 + 混入 API Key」模式下,官方账户订阅额度耗尽时,前端 Composer 发送按钮仍处于禁用锁定状态。
经 CDP 断点与状态追踪,原因是:虽然 PR #2383 实现了在 Query 缓存层改写 rate_limit.allowed = true,但返回的数据中仍残留了服务端的 "rate_limit_reached_type": { "type": "rate_limit_reached" }。
新版客户端的额度检测函数 Iei(e) 首行即执行:

if (e?.rate_limit_reached_type != null) return !0;

@ViceEye
ViceEye marked this pull request as draft October 22, 2026 13:01
@ViceEye
ViceEye force-pushed the codex/fix-composer-quota-unlock branch from 143afc4 to 8f648f3 Compare October 22, 2026 20:38
@ViceEye
ViceEye force-pushed the codex/fix-composer-quota-unlock branch from 8f648f3 to 0b8d882 Compare October 23, 2026 14:53
@BigPizzaV3
BigPizzaV3 merged commit 38fbf6a into BigPizzaV3:main Oct 25, 2026
2 checks passed
BigPizzaV3 added a commit that referenced this pull request Oct 25, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BigPizzaV3

Copy link
Copy Markdown
Owner

感谢定位到 rate_limit_reached_type 这个锁定点。增强版注入脚本里已经有同样的清理,这次把关闭增强时使用的独立额度脚本对齐过来,改动小、作用域仍限于官登混入 Key,测试也覆盖到了,可以合入。auto_takeover.rs 的 cfg 调整修的是非 macOS/Windows 平台的编译问题,我们一并接受。PR 目前是 Draft 状态,我们会直接合入;之后如果发现同类字段(例如新的锁定标记),欢迎继续提。

已合入 main(d08fb191),会随下一个版本发布。感谢贡献!

BigPizzaV3 added a commit that referenced this pull request Oct 25, 2026
…_upsell 彻底解决前端硬锁定

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BigPizzaV3 added a commit that referenced this pull request Oct 25, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants