feat(routing): choose quota window for earlier reset#795
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e30fef5140
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: abc675fe13
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
0c877e3 to
d9d6e24
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Hermes blocker: this PR changes behavior/API/schema/UI but has no OpenSpec change folder. Evidence:
Requested fix: add the appropriate |
|
Superseded by #871, which carries the reset-window routing repair on a current base with the OpenSpec change and migration-head reconciliation. Closing this older dirty repair branch to keep the queue focused on the active replacement. |
Summary
Rebases and repairs #644 on current
main, preserving the original feature from @wuchao05 while resolving the merge conflicts and migration-head drift.This keeps the existing weekly-quota default for
prefer earlier resetrouting, and adds an operator setting to choose whether that preference is driven by the primary 5h quota window or the secondary weekly window.Supersedes and credits #644.
Changes
prefer_earlier_reset_windowin dashboard settings with API/schema support.5h quotavsWeekly quota.Validation
uv run pytest -q -ra -n 8 -o faulthandler_timeout=300 -o faulthandler_exit_on_timeout=true --timeout=180 --timeout-method=thread --durations=20 tests/unit/test_load_balancer.py tests/unit/test_proxy_http_bridge.py tests/unit/test_proxy_utils.py tests/integration/test_settings_api.py tests/integration/test_http_responses_bridge.py::test_v1_responses_http_bridge_creation_honors_prefer_earlier_reset— 559 passedcd frontend && bun run test src/features/settings/components/routing-settings.test.tsx src/features/settings/schemas.test.ts src/features/settings/hooks/use-settings.test.ts src/features/settings/payload.test.ts— 14 passeduv run codex-lb-db --db-url <tmp sqlite> upgrade head && uv run codex-lb-db --db-url <tmp sqlite> check—migration_policy=ok,schema_drift=noneuvx ruff check app tests && uvx ruff format --check app tests