
CPA 到 Claude 上游的连接安静 15 秒就被重置,附上分桶判定方法与刚发布的 v8.0.50 升级判断,外加 sub2api 受限管理员密钥调统计接口 403 的处置。
api.anthropic.com 与 chatgpt.com 的连接会在安静约 15 秒后被重置 1。他数了 29 次断连:23 次落在 15.x 秒,5 次 16.x,1 次 17.x,没有一次在 15–17.2 秒之外。http/1.1:
internal/runtime/executor/helps/utls_client.go 第 232 行:ALPN 扩展里只有 http/1.1 一个协议;连接只有在协商出 h2 时才切 HTTP/2 传输 2chatgpt.com、api.openai.com、claude.ai、www.cloudflare.com 都恰在 15.0 秒被 RST,github.com 45 秒仍开着,httpbin.org 30 秒拿到干净的 400。helps 目录里没有 ResponseHeaderTimeout,也没有 IdleConnTimeout。关掉 TCP keepalive、改成 5 秒或 15 秒探测,断连时刻一模一样,所以这不是保活参数问题。
internal/runtime/executor/claude_executor_stream.go 第 445 行:扫描器提前结束时发 upstream stream closed before message_stop 的 502 3
sdk/api/handlers/claude/code_handlers.go 第 499 行:以 event: error 加 JSON 错误体结束这一轮 4claudeErrorTypeFromStatus 里落 api_error,所以 Claude Code 那侧看到的就是 api_error 加「mid-response」。这条 502 会进冷却分支,凭证被瞬时停 60 秒。那份 12 小时冷却只针对 404 与凭证级,跟这里无关,别去调它。StopFailure 钩子,matcher 填 server_error 自动续跑。v8.0.50,发布页published_at 13:32:42Z,created_at 13:29:23Z)config.example.yaml 的差异只有注释行,键名与默认值一个都没动idle-conn-timeout 300 秒、max-idle-conns-per-host 2 5。OAuth 凭证永远不参与池,ChatGPT 的 browser-profile 也不参与。data: data: 双前缀与重复 [DONE]。同一格式的流现在只在确实存在翻译钩子时才走翻译。content_token_count(9037d543,Closes #7146),只清洗来自上游的回放副本。如果你被这个字段顶过 400,这一版能解。d00267c3(Closes #7120)把 Anthropic 的「Your credit balance is too low」400 改判为 payment_required,走 30 分钟冷却并换号;b63322b9(Closes #7133)给 Antigravity 的 claude-opus-5-5-high 与 claude-sonnet-5-5-high 补上 levels,显式 thinkingLevel 不再被折成 budget;a96e640d(Closes #7135)让登录态 Codex 凭证的手动刷新不再解锁;d65840fb 给 xai 文件名加身份哈希防撞。/api/v1/admin/openai/refresh-token 也是 403,自述「一下子把自动化上号搞废了」。today-stats/batch、usage/batch、accounts/:id/today-stats、accounts/:id/usage。x-api-key 以 adm_sc_ 开头时才走受限密钥鉴权,其余走完整管理密钥。受限那条要求请求的完整路径命中精确白名单,否则直接 403,并把 admin_key_denial_reason=permission_denied 写进审计 7。
backend/internal/pkg/adminaccess/catalog.go 开头的注释原文:接口按方法和完整路径精确登记,新增接口不会继承同目录权限;accounts.read 之下只有三条 GET 8accounts 组在 v0.2.19 一共登记了 70 条路由,accounts.read 只覆盖其中 3 条。目录里没有任何 /openai/** 路由,所以配额刷新、重置额度、token 刷新这一整组都被挡在准入层之外。这套默认拒绝是 10 月 24 日那张 #8319 带进来的,不是新 bug,只是当时没人把统计接口列进去。oauth.auth-dir,改完不用重启mergeable_state 为 unstable,含迁移 250)。它给 OpenAI 与 Composite 分组加三档:跟随客户端、强制 Fast、强制 Ultrafast。service_tier,而 priority、fast、ultrafast 的通用乘数都是 2.0;只有 gpt-6-astra 的 ultrafast 被单独抬到 6。分组一旦强制,账单照单执行,不是「客户端不传就不算」。| 仓库 | 当前版本 | 发布时间(北京) | 本窗口 |
|---|---|---|---|
| CLIProxyAPI | v8.0.50 | 11-01 21:32 | 发版 |
| sub2api | 0.2.19 | 10-28 18:16 | 无 |
| codex-proxy | v2.1.21 | 10-28 04:33 | 无 |
| codex2api | v3.1.2 | 10-28 04:39 | 无 |
signal.active 为假 14。别把「今天没重置」当成异常,这轮观测里也没有新的 banked 承诺。github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
status.openai.com
status.anthropic.com
status.cloud.google.com
codex-reset.com
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.