lishuangqiang
833cfcc2fb
perf(gateway): skip the cache_control TTL walk when no 1h breakpoint exists
...
The byte-level precheck added for #8668 still runs both cache_control walks
for any body containing a "thinking" literal, because the thinking-block
cleanup cannot be skipped by that check alone. Claude Code enables extended
thinking by default, so that is the dominant shape: the precheck pays its own
scan and then falls through to the unconditional
normalizeCacheControlTTLOrder(enforceCacheControlBlockLimit(body)).
On the 32KB Claude Code benchmark body with thinking, this made the optimized
path slightly slower than the pre-fix code (112us vs 104us).
Skip the second collectCacheControlPaths pass when the body has no "1h"
literal. The walk is provably a no-op there: last1h stays -1 and nothing is
rewritten. Escaped bodies returned earlier, so the byte check is exact, and
the block-limit deletions only remove cache_control keys, which cannot
introduce a 1h breakpoint.
Benchmark (Apple M5 Pro, -benchtime 2s -count 3):
thinking, no 1h: 112us / 21 allocs -> 52us / 8 allocs
common, no 1h: 21.6us / 0 allocs -> 21.3us / 0 allocs
1h bodies: unchanged (within noise)
The benchmark gains two thinking cases so future work cannot regress this
shape unnoticed. Equivalence tests compare against the verbatim legacy
implementation.
Fixes #8861
Refs #8668
2026-11-16 21:33:25 +08:00
Wesley Liddick
d70676756f
Merge pull request #8840 from r266-tech/codex/channel-bedrock-compat-toggle
...
fix(channels): persist Bedrock compatibility as a boolean
2026-11-16 16:35:31 +08:00
Wesley Liddick
6b7cbc63be
Merge pull request #8837 from Daiyangcheng/fix/seedance-scheduler-capability-projection
...
fix(scheduler): keep openai_capabilities in the scheduler metadata projection so Seedance accounts stay schedulable
2026-11-16 16:35:23 +08:00
Wesley Liddick
46b8792658
Merge pull request #8828 from little-greenbean/fix/gemini-parallel-tool-calls
...
fix(gemini): separate same-name parallel tool calls in streams
2026-11-16 16:35:14 +08:00
Wesley Liddick
4f3f916317
Merge pull request #8826 from william-drakemond/fix/compat-empty-stream-release-sticky
...
fix(antigravity): keepalive 后空流释放会话粘性账号 / Release the sticky account after a committed empty compat stream
2026-11-16 16:35:06 +08:00
Wesley Liddick
f2eaed31c3
Merge pull request #8825 from r266-tech/codex/deepseek-explicit-pricing-overrides
...
fix(pricing): honor explicit DeepSeek token price overrides
2026-11-16 16:34:58 +08:00
Wesley Liddick
992ac63308
Merge pull request #8814 from qsy4/fix/openai-compat-stream-account-side-effects
...
fix(openai): apply account side effects to stream errors after output on compat paths
2026-11-16 16:34:50 +08:00
Wesley Liddick
101c2462dd
Merge pull request #8813 from qsy4/fix/openai-sse-keepalive-before-first-output
...
fix(openai): forward upstream keepalive events before first output
2026-11-16 16:34:42 +08:00
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
0563176a5d
Merge pull request #8740 from r266-tech/codex/gemini-usage-refetch
...
fix(accounts): keep Gemini usage bars visible during refetch
2026-11-16 16:31:47 +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
d7ae0544e8
Merge pull request #8738 from r266-tech/codex/reactive-cn-quota-snapshots
...
fix(cn-quota): refresh usage cells with account snapshots
2026-11-16 16:31:31 +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
472ea57525
Merge pull request #8736 from wozhenbang2004/fix/whitelist-wildcard-8710
...
fix(accounts): reject wildcard model whitelist entries
2026-11-16 16:31:14 +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