fix(auth): scope external CLI credential overlays#73952
Conversation
|
@codex review |
Greptile SummaryThis PR fixes #73908 by scoping external CLI credential overlay resolution in the Confidence Score: 5/5Safe to merge — the fix is narrowly scoped and all existing unrestricted callers are unaffected. No logic, security, or runtime correctness issues found. The eligibility filter correctly handles an empty providerIds array (all providers skipped) versus undefined (all providers run). The readExternalCliBootstrapCredential path intentionally omits options, preserving the previous keychain behavior for active token refresh. Test isolation via invalidateModelAuthStatusCache() in beforeEach is correct. No P0 or P1 findings. No files require special attention. Reviews (1): Last reviewed commit: "chore: document external CLI auth overla..." | Re-trigger Greptile |
|
Thanks for the context here. I did a careful shell check against current Current main already implements the intended provider-scoped external CLI auth overlay behavior with a broader maintainer fix. External CLI readers are skipped before credential reads when out of scope, Best possible solution: Close this PR as implemented by the broader current-main fix in 1375746. Keep the current implementation because it covers this PR's auth-status overlay scoping and also scopes startup prewarm/provider discovery for the linked #73908 behavior. What I checked:
Likely related people:
So I’m closing this as already implemented rather than keeping a duplicate issue open. Codex review notes: model gpt-5.5, reasoning high; reviewed against 7e5d6dba8001; fix evidence: commit 13757465ba1b, main fix timestamp 2026-04-29T07:52:13+01:00. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
models.authStatusto configured refreshable providers.Why This Is Safe
models.authStatusalready computes the refreshable provider set; the change reuses that existing view to avoid unrelated runtime-only overlays.Tests
pnpm test src/agents/auth-profiles.store-cache.test.ts src/agents/auth-profiles.external-cli-sync.test.ts src/gateway/server-methods/models-auth-status.test.ts -- --reporter=verbosepnpm exec oxfmt --check --threads=1 CHANGELOG.md src/agents/auth-profiles/external-cli-sync.ts src/agents/auth-profiles/external-auth.ts src/agents/auth-profiles/store.ts src/gateway/server-methods/models-auth-status.ts src/agents/auth-profiles.external-cli-sync.test.ts src/gateway/server-methods/models-auth-status.test.tsgit diff --checkpnpm check:changedOut Of Scope
Made with Cursor