fix: recognize Codex credential-pool auth#617
Merged
EKKOLearnAI merged 1 commit intoMay 11, 2026
Conversation
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.
Codex 的模型可用性和登录状态现在会兼容 Hermes
auth.json里的credential_pool.openai-codex。旧的providers.openai-codex.tokens仍保留;这个 PR 不改 Hermes Agent 的写入格式。改动
available-models的 OAuth provider 授权判断同时读取 legacyproviders和新的credential_pool。credential_pool.openai-codex解析 access / refresh token;刷新 token 时同步更新已命中的 legacy provider 和 pool entry。providers为空、credential_pool.openai-codex有 token 时仍能列出 Codex models、并返回 authenticated。验证
已通过:
npm test -- tests/server/codex-credential-pool-auth.test.ts tests/shared/provider-presets.test.ts tests/server/copilot-auth-controller.test.ts npm run build结果:15 tests passed;build passed。
已知:
npm test全量目前卡在未改动的tests/server/session-sync.test.ts,报no such table: sessions。npm test -- tests/server/session-sync.test.ts可复现同一个失败,和这次改动无关。