Wesley Liddick
1ca302abf3
Merge pull request #8811 from Anankke/fix/messages-bridge-pre-content-failover
...
fix(openai): fail over Messages bridge errors before first content
2026-11-16 16:34:33 +08:00
Wesley Liddick
9750f8e039
Merge pull request #8808 from r266-tech/codex/first-output-spool-fallback
...
fix(openai): fall back to memory when first-output spool creation fails
2026-11-16 16:34:25 +08:00
Wesley Liddick
568db32f22
Merge pull request #8806 from feeeei/fix/usage-account-filter-actual-cost
...
fix(usage): 按账户筛选时模型与端点分布的实际扣费不再替换为账号成本
2026-11-16 16:34:16 +08:00
Wesley Liddick
119b04f945
Merge pull request #8800 from Anankke/fix/upstream-tcp-keepalive
...
fix(upstream): detect dead upstream connections in about 30s
2026-11-16 16:34:08 +08:00
Wesley Liddick
857ab95081
Merge pull request #8798 from Anankke/fix/pricing-startup-nonblocking
...
fix(pricing): check remote hash in background at startup
2026-11-16 16:34:00 +08:00
Wesley Liddick
470c02b399
Merge pull request #8796 from Anankke/fix/composite-route-public-model-response
...
fix(gateway): restore public model in composite-routed responses
2026-11-16 16:33:53 +08:00
Wesley Liddick
97957edd9e
Merge pull request #8790 from Anankke/fix/websearch-account-mode-platforms
...
fix(websearch): honor account mode on every channel-toggle platform
2026-11-16 16:33:45 +08:00
Wesley Liddick
63751ea4de
Merge pull request #8788 from Anankke/fix/count-tokens-passthrough-duplicate-headers
...
fix(gateway): stop duplicating headers on count_tokens passthrough
2026-11-16 16:33:38 +08:00
Wesley Liddick
1d585c94fd
Merge pull request #8786 from Anankke/fix/chat-completions-metadata-user-id
...
fix(gateway): keep client metadata.user_id in Chat Completions to Anthropic
2026-11-16 16:33:30 +08:00
Wesley Liddick
4cebc098c3
Merge pull request #8779 from lishuangqiang/fix/anthropic-fable-model-limit-recovery
...
fix(ratelimit): lift Anthropic Fable model limit when the 7d_oi window recovers
2026-11-16 16:33:22 +08:00
Wesley Liddick
c7df3b693f
Merge pull request #8775 from Henglie/fix/web-no-store-settings-html
...
fix(web): stop caching settings-injected HTML
2026-11-16 16:33:15 +08:00
Wesley Liddick
d31a87a4e2
Merge pull request #8769 from Undertone0809/codex/fix-codex-http-context
...
fix(openai): normalize additional Codex context on HTTP Responses
2026-11-16 16:33:07 +08:00
Wesley Liddick
56848016c5
Merge pull request #8763 from wc4440222/fix/kimi-monthly-quota
...
fix(kimi): 解析新套餐月度额度并清理缺席窗口快照
2026-11-16 16:32:59 +08:00
Wesley Liddick
4763569af2
Merge pull request #8761 from CooCoode/fix/8760-cc-responses-strict-default
...
fix(apicompat): default json_schema strict=false when converting CC to Responses
2026-11-16 16:32:51 +08:00
Wesley Liddick
202740441d
Merge pull request #8759 from r266-tech/codex/gemini-schema-array-items
...
fix(antigravity): match schema items to the selected type
2026-11-16 16:32:44 +08:00
Wesley Liddick
3b5310c5d5
Merge pull request #8757 from Anandb71/arbor/sonnet-4-5-retirement
...
fix(claude): default account tests to claude-sonnet-4-6
2026-11-16 16:32:36 +08:00
Wesley Liddick
e16a349ebb
Merge pull request #8754 from r266-tech/codex/preserve-additional-tools-id
...
fix(codex): preserve and normalize additional_tools IDs
2026-11-16 16:32:27 +08:00
Wesley Liddick
8a585c9141
Merge pull request #8745 from wozhenbang2004/fix/anthropic-compat-observation-8714
...
fix(gateway): record Anthropic response models in compatibility routes
2026-11-16 16:32:19 +08:00
Wesley Liddick
6247d33eb6
Merge pull request #8743 from r266-tech/codex/fix-peak-rate-usage-test
...
test(billing): make peak-rate usage tests independent of wall clock
2026-11-16 16:32:11 +08:00
Wesley Liddick
6fd905f30d
Merge pull request #8742 from r266-tech/codex/per-turn-control-beta
...
fix(gateway): preserve message output config with per-turn beta
2026-11-16 16:32:02 +08:00
Wesley Liddick
e54a186548
Merge pull request #8741 from r266-tech/codex/native-anthropic-error-endpoint
...
fix(gateway): record native Anthropic endpoints on error paths
2026-11-16 16:31:55 +08:00
Wesley Liddick
c782537eef
Merge pull request #8739 from r266-tech/codex/anthropic-compat-effort-policy
...
fix(gateway): enforce effort policies on Anthropic compatibility routes
2026-11-16 16:31:39 +08:00
Wesley Liddick
5146728d2f
Merge pull request #8737 from r266-tech/codex/claude-rotated-token-retry
...
fix(claude): recover requests after concurrent token rotation
2026-11-16 16:31:22 +08:00
Wesley Liddick
eb25511c71
Merge pull request #8735 from Hato626/perf/oauth-input-metadata-cleanup
...
perf(openai): avoid repeated full-body copies during OAuth metadata cleanup
2026-11-16 16:31:06 +08:00
Wesley Liddick
c6d9d48f9a
Merge pull request #8729 from r266-tech/codex/snapshot-transient-expiry
...
fix(scheduler): recover snapshot accounts after cooldown expiry
2026-11-16 16:30:58 +08:00
Wesley Liddick
a38ffc3050
Merge pull request #8728 from r266-tech/codex/chat-fallback-response-observation
...
fix(usage): retain response models through Chat fallbacks
2026-11-16 16:30:49 +08:00
Wesley Liddick
32e4283894
Merge pull request #8727 from r266-tech/codex/native-anthropic-response-observation
...
fix(usage): retain native Anthropic response observations
2026-11-16 16:30:41 +08:00
Wesley Liddick
51e76a46c1
Merge pull request #8726 from r266-tech/codex/sticky-writeback-after-disconnect
...
fix(gateway): retain sticky writes after client disconnects
2026-11-16 16:30:34 +08:00
Wesley Liddick
90eb1744d4
Merge pull request #8723 from cyhhao/fix/keep-weekly-usage-on-5h-rollover
...
fix(anthropic): keep weekly usage readings across 5h rollovers
2026-11-16 16:30:26 +08:00
Wesley Liddick
0b473ad60b
Merge pull request #8703 from Anankke/fix/responses-bridge-mid-system
...
fix(apicompat): send mid-conversation system messages to Responses as developer
2026-11-16 16:30:18 +08:00
Wesley Liddick
2df3dbcfbb
Merge pull request #8698 from r266-tech/codex/anthropic-quota-window-start
...
fix(usage): advance five-hour window start on active quota sync
2026-11-16 16:30:11 +08:00
Wesley Liddick
fde504e343
Merge pull request #8693 from feeeei/fix/group-usage-rollup-nonblocking
...
fix(usage): 分组日汇总重建与保留期清理不阻塞 usage_logs 写入
2026-11-16 16:30:03 +08:00
Wesley Liddick
910d4d86b2
Merge pull request #8684 from feeeei/fix/login-email-identity-backfill-nil
...
fix(auth): 登录回填 email 身份失败时不再 panic
2026-11-16 16:29:55 +08:00
Wesley Liddick
89fce5446d
Merge pull request #8682 from r266-tech/codex/preserve-sealed-call-content
...
fix(apicompat): retain encrypted function call content
2026-11-16 16:29:47 +08:00
Wesley Liddick
bd3a878ef4
Merge pull request #8678 from Cylion-bot/codex/disable-concurrency-ping
...
fix: allow disabling concurrency wait pings
2026-11-16 16:29:39 +08:00
Wesley Liddick
0ebc8b2fd6
Merge pull request #8675 from feeeei/fix/bedrock-error-classification
...
fix(bedrock): 按错误语义区分封号、用例缺失、限流与内容过滤,流中断保留 usage
2026-11-16 16:29:32 +08:00
Wesley Liddick
8da0388542
Merge pull request #8673 from baryon/contrib/antigravity-compat-gemini-stream-timeout
...
fix(antigravity): stream Gemini compat thoughts and anchor pre-content timeout after headers
2026-11-16 16:29:24 +08:00
Wesley Liddick
41c567b38f
Merge pull request #8667 from lishuangqiang/perf/anthropic-request-json
...
perf(gateway): trim per-request JSON work on the Anthropic request path
2026-11-16 16:29:15 +08:00
Wesley Liddick
a6e02a37aa
Merge pull request #8664 from jaxxjj/codex/openai-fork-prompt-cache-namespace
...
fix(openai): keep Codex forks on their parent's prompt cache key
2026-11-16 16:29:06 +08:00
Wesley Liddick
980ddd9425
Merge pull request #8662 from feeeei/fix/gemini-chat-response-format
...
fix(gemini): 兼容入口 chat 请求转发 response_format 结构化输出
2026-11-16 16:28:58 +08:00
Wesley Liddick
0c641e5ed7
Merge pull request #8659 from lishuangqiang/fix/group-rate-sync-transaction
...
fix(billing): make group rate/RPM sync transactional
2026-11-16 16:28:50 +08:00
Wesley Liddick
83a1f5dbe8
Merge pull request #8653 from lishuangqiang/perf/anthropic-stream-fast-path
...
perf(gateway): skip JSON decode for forwarded Anthropic stream events
2026-11-16 16:28:42 +08:00
Wesley Liddick
314de5d0c0
Merge pull request #8651 from lishuangqiang/fix/rpm-override-group-scope
...
fix(billing): scope RPM override to the group it belongs to
2026-11-16 16:28:34 +08:00
Wesley Liddick
d7d45924e8
Merge pull request #8649 from lishuangqiang/fix/alipay-stable-refund-request-id
...
fix(payment): make Alipay refund request id stable across retries
2026-11-16 16:28:26 +08:00
Wesley Liddick
a81a345a17
Merge pull request #8644 from r266-tech/codex/claude-usage-scoped-limits
...
fix(usage): read Fable weekly quotas from scoped limits
2026-11-16 16:28:19 +08:00
Anankke
f1013f177f
fix(openai): SSE errors after keepalive, passthrough rules on exhaustion
...
Once keepalive has committed the response as SSE, failover can continue, so every later error in the Messages loop must be an SSE event. ensureAnthropicErrorResponse no longer counts keepalive-only output as a written response, and the OpenCode unsupported-model error goes through writeAnthropicError.
A failover-eligible failed or error frame no longer ends the stream inline but reaches the exhaustion path, so the failover error now carries the frame and exhaustion applies the error passthrough rule that matches it, as the inline path did. The lookup also runs for a first event frame and a stream=false request, where main skipped it.
2026-11-14 08:04:02 -08:00
Anankke
94e56dd192
fix(upstream): do not fail the dial when TCP_USER_TIMEOUT cannot be set
...
upstreamDialControl returned the setsockopt error, so a kernel or socket that refuses TCP_USER_TIMEOUT made every dial through newUpstreamDialer fail, where the keep-alive options alone never do that.
A failure is now logged and the dial goes on without the option, as the standard library does for the keep-alive options.
2026-11-14 07:03:11 -08:00
Anankke
7349750c01
fix(gateway): limit composite model rewrite to message_start events
...
On the Anthropic forward streaming path the public model was written into any event carrying a message object, while the API key passthrough path only rewrites message_start. Rewrite message_start only on both.
The passthrough path also added a model field to a message_start that had none, which the non-streaming path does not do. Skip the rewrite when the field is absent.
2026-11-14 06:50:16 -08:00
Anankke
38eb97bd7a
fix(openai): fail over Messages bridge errors before first content
...
The Messages bridge wrote message_start as soon as upstream sent response.created, and a keepalive ping after one silent keepalive interval also counted as output, so the failover branches for failed frames, error frames and a missing terminal event could never run on a real stream and the error went to the client.
The prelude is now held until the first content_block_delta, a terminal event or a failure. No change to which errors fail over: read errors still do not, and failures that do not fail over release the held prelude so the client sees the same bytes as before.
Keepalive pings still flow while held and are counted as keepalive bytes, so the handler compares the written size net of them and writes later errors as SSE events.
A cancelled request context while the prelude is held counts as a client disconnect, not an upstream failure.
2026-11-14 06:08:05 -08:00
r266-tech
82cd13d1ec
fix(openai): fall back to memory when first-output spool creation fails
2026-11-14 21:28:25 +08:00