hermes - 💡(How to fix) Fix Profile Codex auth can ignore global credential pool when local state is stale [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Credential resolution fails with a missing access_token/Codex auth error, even though global Codex auth is valid.

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Bug Description

When Hermes runs under a named profile, Codex runtime credential resolution can report missing credentials even though global Codex auth is valid.

The profile/global auth fallback contract already allows profiles to inherit global-root credentials when the profile does not have usable local credentials. However, the Codex-specific pool fallback path reads only the active profile auth store directly, bypassing the existing read_credential_pool("openai-codex") global fallback behavior.

Steps to Reproduce

  1. Authenticate openai-codex globally.
  2. Use a named profile whose auth.json contains a stale/empty providers.openai-codex.tokens block and no usable local credential_pool.openai-codex entries.
  3. Resolve Codex runtime credentials from that profile.

Expected Behavior

The profile should inherit the global-root credential_pool.openai-codex entry when the profile has no usable local Codex pool entries, matching the existing cross-profile auth fallback contract.

Actual Behavior

Credential resolution fails with a missing access_token/Codex auth error, even though global Codex auth is valid.

Proposed Fix

Update the Codex pool fallback helper to use read_credential_pool("openai-codex") instead of reading only the active profile auth store directly, then add a regression test for stale empty profile singleton state plus valid global Codex pool credentials.

Related fix PR: #34141

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING