feat(openai): add scheduled account warmup for codex oauth accounts - #192
Merged
Merged
Conversation
2han9wen71an
added a commit
to 2han9wen71an/codex-proxy-rs
that referenced
this pull request
Sep 22, 2026
# Conflicts: # backend/migrations/.frozen-sha256
This was referenced Sep 24, 2026
zyycn
added a commit
that referenced
this pull request
Sep 24, 2026
zyycn
pushed a commit
that referenced
this pull request
Sep 24, 2026
Co-authored-by: Zyy <zyycn@users.noreply.github.com> Co-authored-by: Codex <noreply@openai.com>
zyycn
added a commit
that referenced
this pull request
Sep 24, 2026
Integrate PR #276 on the current main baseline. Keep local connection capacity failures out of upstream retry and WebSocket breaker accounting. Keep existing settings assertions valid when the #192 migration adds columns. Source-commit: f9828a5 Co-authored-by: Zyy <zyycn@users.noreply.github.com> Co-authored-by: Codex <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能说明
针对 OpenAI Codex 账号的 5h 与周线双层配额窗口机制,新增 OAuth 账号每日预激活(Warmup) 功能:
机制背景:
核心实现:
0017_account_warmup.sql在runtime_settings增加account_warmup_enabled、account_warmup_schedule_time(默认08:00,支持逗号分隔多个时间点)、account_warmup_model。limit_reached或used_percent >= 100%)的账号。store: false、reasoning.effort: none、text.verbosity: low、service_tier: default,不污染会话历史。synchronize_passive_headers更新最新的 5h 与周线配额快照。验证情况
cargo check --workspace通过cargo test --workspace --no-run通过cargo test -p gateway-core -p gateway-admin -p gateway-api -p provider-openai单元测试通过pnpm run typecheck&pnpm run build前端构建通过pnpm run lint前端代码校验通过