GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — feat(auth): account pool round-robin and fill-first strategies by Wibias · Pull Request #593 · lidge-jun/opencodex Conversation
|
| Metric | Baseline (quota) | Round-robin | Margin |
|---|---|---|---|
| New-session share max−min | 100pp (100/0/0) | 0pp (33/33/33) | Fairness ↑ 100pp |
| Mid-thread affinity flips | 0 | 0 (50 re-resolves) | No regression |
| Operator control | Threshold only | Strategy + stickyLimit | Parity with peer RR/Sticky, better affinity |
vs 9Router / OmniRoute: session-granular RR (not request-granular), three composable strategies instead of a large menu, keeps existing generation/cooldown integrity.
bun run typecheckbun run privacy:scanbun run lint:guicodex-pool-rotation, anthropic-account-pool, account-pool-management-api, GUI strategy testsaccountPoolStrategy (quota, round-robin, fill-first) and accountPoolStickyLimit for new sessions.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Seed RR on manual select, gate affinity re-eval to quota, validate before mutate, keep automatic picks in-memory, and advance fill-first/RR on 429.
Mock shared /active defaults and pool-strategy so CodexPoolStrategySetting no longer races the auto-switch harness.
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ 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". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Return 400 for null/array/scalar JSON instead of throwing 500, and use POOL_KEY_ANTHROPIC in the sticky-release test.
|
Addressed remaining CodeRabbit nits in e6467e3:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
🧩 Analysis chain🏁 Script executed: #!/bin/bash set -euo pipefail commit="a96d705d" echo '=== Commit metadata and changed files ===' git show --no-ext-diff --format=fuller --stat "$commit" git diff-tree --no-commit-id --name-only -r "$commit" | sort echo '=== Source/test outlines for changed TypeScript files ===' git diff-tree --no-commit-id --name-only -r "$commit" | while IFS= read -r file; do case "$file" in *.ts|*.tsx) echo "--- $file" ast-grep outline "$file" --items all 2>/dev/null || true ;; esac done echo '=== Exact implementation/test patch ===' git show --no-ext-diff --format= --find-renames "$commit" -- \ src/codex/routing.ts \ src/codex/auth-context.ts \ src/server/responses/core.ts \ src/oauth/anthropic-routing.ts \ src/codex/pool-rotation.ts \ tests/codex-pool-rotation.test.ts \ tests/anthropic-account-pool.test.ts \ tests/server-auth.test.ts echo '=== Relevant code at the reviewed commit ===' git show "$commit:src/codex/routing.ts" | nl -ba | sed -n '1,180p;500,720p;900,1060p' git show "$commit:src/oauth/anthropic-routing.ts" | nl -ba | sed -n '140,260p;340,540p' git show "$commit:src/server/responses/core.ts" | nl -ba | sed -n '260,360p' git show "$commit:src/codex/pool-rotation.ts" | nl -ba | sed -n '80,190p' echo '=== Focused regression-test sections at the reviewed commit ===' git show "$commit:tests/codex-pool-rotation.test.ts" | nl -ba | sed -n '220,290p;360,500p' git show "$commit:tests/anthropic-account-pool.test.ts" | nl -ba | sed -n '170,420p' git show "$commit:tests/server-auth.test.ts" | nl -ba | sed -n '1650,1730p' Length of output: 45280 🏁 Script executed: #!/bin/bash set -euo pipefail commit="a96d705d" show_range() { local file="$1" local range="$2" echo "=== ${file}:${range} @ ${commit} ===" git show "${commit}:${file}" | cat -n | sed -n "${range}p" } echo '=== Complete commit patch (including auth API) ===' git show --no-ext-diff --format= --find-renames "$commit" show_range src/codex/routing.ts '470,750' show_range src/codex/routing.ts '740,1035' show_range src/oauth/anthropic-routing.ts '130,340' show_range src/oauth/anthropic-routing.ts '330,525' show_range src/codex/auth-api.ts '500,760' echo '=== Exact relevant call sites at the reviewed commit ===' git grep -n -E \ 'getEffectiveActiveCodexAccountId\(|promoteActiveCodexAccount\(|rememberActiveCodexAccount\(|setActiveCodexAccount\(|resolveAnthropicAccountForSession\(|getAnthropicPoolAccessToken\(|rotateAnthropicAccountOn429\(' \ "$commit" -- src tests || true echo '=== Full modified test files at the reviewed commit ===' git show "$commit:tests/codex-pool-rotation.test.ts" | cat -n | sed -n '1,500p' git show "$commit:tests/anthropic-account-pool.test.ts" | cat -n | sed -n '1,430p' Length of output: 139947
The documented preview-reserve limitation remains properly constrained to the subagent fallback path and does not invalidate the routing changes in this commit. ✅ Action performedReview finished.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…-jun#593) * feat(codex): add account pool round-robin selector * feat(codex): honor accountPoolStrategy for new sessions * feat(anthropic): account pool rotation strategies * feat(api): expose account pool rotation strategy * feat(gui): account pool rotation strategy controls * fix(gui): optimistic account pool strategy select * docs: account pool rotation strategies * docs: clarify Anthropic pool strategy quota window * test(codex): assert round-robin fairness histogram * fix(auth): peek RR preview and harden pool strategy tests * fix(auth): address Codex pool-strategy review findings Seed RR on manual select, gate affinity re-eval to quota, validate before mutate, keep automatic picks in-memory, and advance fill-first/RR on 429. * fix(gui): keep auto-switch tests mounting with strategy card Mock shared /active defaults and pool-strategy so CodexPoolStrategySetting no longer races the auto-switch harness. * fix(auth): typecheck and remaining pool-strategy P2s * fix(auth): restore lidge-jun#584 retry and harden pool rotation edges * fix(api): reject non-object pool-strategy bodies Return 400 for null/array/scalar JSON instead of throwing 500, and use POOL_KEY_ANTHROPIC in the sticky-release test.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Feature]: Account pool round-robin / fill-first rotation strategies
There was an error while loading. Please reload this page.