mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-20 08:01:46 +00:00
* fix(openai): rotate new round-robin sessions without affinity hits Strict affinity keeps a session on one account, but the shared request cursor advanced on every scheduling load, including affinity hits. A new session then took whatever slot that request volume happened to leave. Advance a separate session cursor only when round-robin assigns an account, and keep the request cursor for other strategies. * fix(openai): advance round robin when an account assignment succeeds Commit the session binding and round-robin cursor together after acquiring the account lease. Release a conflicting lease before retrying so concurrent first requests share a binding without consuming extra turns. Count delegated selections and preserve explicit plugin picks. Verified with OpenAI provider tests, store tests against Redis and PostgreSQL, architecture checks, and workspace Clippy. Co-authored-by: Codex <noreply@openai.com> --------- Co-authored-by: koeria <riennie@qq.com> Co-authored-by: Zyy <zyycn@users.noreply.github.com> Co-authored-by: Codex <noreply@openai.com>