feat: Codex account_name 透传并优化池列表 OAuth 标识与额度重置倒计时展示

(cherry picked from commit 1b9176fc4a)
This commit is contained in:
kayphoon
2026-03-18 20:58:33 +08:00
committed by fawney19
parent 8d8cddcef6
commit 6e55968487
16 changed files with 888 additions and 251 deletions

View File

@@ -38,3 +38,10 @@ def test_derive_oauth_expires_at_fallback_to_legacy_datetime() -> None:
)
assert pool_routes._derive_oauth_expires_at(key) == 1772586123
def test_derive_oauth_account_name_from_auth_config() -> None:
assert (
pool_routes._derive_oauth_account_name({"account_name": " Workspace Alpha "})
== "Workspace Alpha"
)