mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 04:47:03 -06:00
5a202f6f90
* fix(auth): bootstrap codex cli credential without clobbering local readCodexCliCredentialsCached was imported but never registered in EXTERNAL_CLI_SYNC_PROVIDERS, so overlayExternalAuthProfiles could not seed openai-codex:default on fresh agents and runtime surfaced "No API key found for provider openai-codex" even after a successful codex login. Register the provider with a new bootstrapOnly flag. Providers flagged bootstrapOnly are adopted only to fill an empty slot: the overlay skips them when a local OAuth credential already exists for the profile, and readExternalCliBootstrapCredential returns null so the refresh path never replaces the locally stored canonical refresh token with stale CLI state. Minimax keeps its existing replace-on-expiry behavior. * test(auth): cover codex cli bootstrap --------- Co-authored-by: sudol <sudol@A8Max.localdomain> Co-authored-by: Peter Steinberger <steipete@gmail.com>