fix: prioritize Codex credential profiles#2236
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Holon Review: fix: prioritize Codex credential profilesSummaryThis PR correctly fixes the credential selection priority issue described in #2234. All three root causes are addressed:
The changes are focused, the diff is clean, and the test coverage is good — both the renamed priority test and the new refresh-failure fallback test validate the core behavioral changes. Findings
When profile refresh fails and a CLI credential is available, the refresh error is silently discarded. This hurts observability: if the profile's refresh token is permanently broken, the system will silently fall back to CLI credentials on every call with no diagnostic signal for operators. Other transports in this codebase use
The function is simplified to VerdictThe core logic is correct and well-tested. One observability improvement recommended (logging the refresh failure), one minor cleanup suggestion. Safe to merge. |
Holon Run Report
|
|
已处理 review 的 observability warning: |
概要
auth.json的回归测试验证
cargo fmt --all -- --checkRUSTFLAGS="-D warnings" cargo check --all-targetscargo test --all-targetsCloses #2234