fix(auth): resolve Codex usage credentials from auth fallbacks - #17480
Closed
NoxsMedia wants to merge 1 commit into
Closed
fix(auth): resolve Codex usage credentials from auth fallbacks#17480NoxsMedia wants to merge 1 commit into
NoxsMedia wants to merge 1 commit into
Conversation
This was referenced Apr 29, 2026
Closed
NoxsMedia
force-pushed
the
fix/codex-account-usage-pool
branch
from
May 11, 2026 12:36
774a3d9 to
1ed8dba
Compare
NoxsMedia
force-pushed
the
fix/codex-account-usage-pool
branch
2 times, most recently
from
May 21, 2026 12:16
eba1fb7 to
c56ac8a
Compare
NoxsMedia
force-pushed
the
fix/codex-account-usage-pool
branch
from
May 31, 2026 03:16
c56ac8a to
4962d84
Compare
NoxsMedia
force-pushed
the
fix/codex-account-usage-pool
branch
5 times, most recently
from
June 21, 2026 02:31
f5541b9 to
ced5de5
Compare
NoxsMedia
force-pushed
the
fix/codex-account-usage-pool
branch
3 times, most recently
from
June 25, 2026 13:07
cf91ed8 to
9220515
Compare
NoxsMedia
force-pushed
the
fix/codex-account-usage-pool
branch
3 times, most recently
from
July 2, 2026 03:07
519bc6a to
459ee4c
Compare
NoxsMedia
force-pushed
the
fix/codex-account-usage-pool
branch
2 times, most recently
from
July 10, 2026 00:45
b95a772 to
1f1b1ab
Compare
Teach legacy Codex token readers to use the same auth resolution paths as runtime credentials: provider state first, credential_pool next, then the global root store for profile processes without local Codex credentials. This lets /usage render Codex Account limits in fresh gateway/profile sessions that inherit global auth, while preserving pool base_url metadata for runtime credential resolution.
NoxsMedia
force-pushed
the
fix/codex-account-usage-pool
branch
from
July 12, 2026 13:40
1f1b1ab to
9584558
Compare
Contributor
|
Thanks for refreshing the focused Problems
Suggested changes
This is an automated hermes-sweeper review. |
Author
|
Closing at the author’s request. We no longer plan to carry this patch. Official main already renders Codex limits once the provider is known, and we are not continuing the additional cold-start credential-pool path in its current form. |
14 tasks
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.
Summary
/usageto resolve OAuth credentials fromcredential_pool.openai-codexwhen the legacyproviders.openai-codexblock is absentbase_urland source provenance metadata during runtime credential resolution/usageprobe account-usage-capable credential pools when no live/cached agent or billing row has identified a provider yetFixes #15167.
Related: #15173.
Latest main refresh
355af2c20(origin/main)4962d8477e69f5c0b4408da0bcef91f19cbba736sourceprovenance forward, avoiding global auth fallback shadowing of local pool credentials, and skipping pool entries still in an exhaustion cooldown.Test Plan
git diff --check/home/ubuntu/.hermes/hermes-agent/.venv/bin/python -m pytest -o addopts='' tests/hermes_cli/test_auth_codex_provider.py tests/hermes_cli/test_auth_profile_fallback.py tests/gateway/test_usage_command.py -qFocused result:
53 passed in 0.57s.