fix(auth): resolve Codex credentials from pool fallback - #29873
Closed
kpadilha wants to merge 1 commit into
Closed
Conversation
(cherry picked from commit be1bf82)
kpadilha
force-pushed
the
fix/codex-credential-pool-fallback
branch
from
May 25, 2026 15:35
4ce6782 to
04caed2
Compare
Contributor
Author
|
Closing as superseded by upstream main. The original fix (Codex chat path falling back to credential_pool when provider singleton is empty) is now covered upstream by commit 69dfcdc, with broader handling/tests including exhausted pool entries and source normalization. I verified current upstream/main passes tests/hermes_cli/test_auth_codex_provider.py (24 passed). Rebasing this old PR commit on current main would regress the newer upstream source contract, so there is no branch update to submit here. |
|
Unsubscribe
Sent from Yahoo Mail for iPhone
On Monday, June 1, 2026, 7:29 AM, Krishna ***@***.***> wrote:
Closed #29873.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
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.
What does this PR do?
Fixes Codex runtime credential resolution when OAuth credentials exist only in the credential pool and the legacy/provider-state slot is empty.
This can happen after
hermes auth add openai-codex --type oauthappends a fresh pooled credential without writing the older provider-state shape. Before this change,_read_codex_tokens()raisedcodex_auth_missingeven though a valid pooled Codex credential was present. The runtime now falls back to the selected pooled credential and preserves the source label for diagnostics.Related Issue
N/A — found while validating local gateway/runtime auth after an upstream cleanup.
Type of Change
Changes Made
hermes_cli/auth.py_read_codex_tokens()fall back toread_credential_pool("openai-codex")when provider state is absent.sourcefield soresolve_codex_runtime_credentials()can report whether credentials came from provider state or a pool entry.tests/hermes_cli/test_auth_codex_provider.pyHow to Test
Targeted validation run on Ubuntu/Linux with Python 3.11:
python -m py_compile hermes_cli/auth.pypython -m pytest tests/hermes_cli/test_auth_codex_provider.py -q -o 'addopts='Result:
Full
pytest tests/ -qwas not run for this small PR branch, so the full-suite checklist item is intentionally left unchecked.Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests passDocumentation & Housekeeping
docs/, docstrings) — or N/Acli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/AFor New Skills
N/A
Screenshots / Logs