Repository navigation
fix(auth): relogin repairs stale profile order after upgrade - #135355
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
obviyus
force-pushed
the
codex/fix-135140-openai-auth-profile
branch
from
September 1, 2026 16:49
2700561 to
1763832
Compare
Collaborator
Author
Collaborator
Author
|
Verification is complete on exact head
Known gate: |
Collaborator
Author
Collaborator
Author
|
landpr-approve-unrelated-red |
Collaborator
Author
Collaborator
Author
|
Thanks @mattcbianco! Proof: After a real OpenAI ChatGPT device login, OpenClaw promoted the fresh OAuth profile and a real local Luna model call returned
|
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.
Closes #135140
Reported by @mattcbianco.
What Problem This Solves
Fixes an issue where users who signed in to OpenAI again after shared auth-store relocation could still get
Explicit auth order for openai has no usable profiles.before a model request started.Why This Change Was Made
Login credentials and per-agent profile order have separate SQLite owners after relocation. Profile promotion now reads the effective credential view before it updates the agent-local order, and it preserves the inherited profile ID when it saves that order.
This keeps explicit order fail-closed behavior unchanged. It does not add a dispatch fallback or copy shared OAuth credentials into the agent database.
User Impact
A successful OpenAI relogin now places the new usable profile before stale entries, so the next
openai/*model call can start with the login that just succeeded.Evidence
2e3f734017b9b1a5a32ba11d844d1fa7a5141de9.Explicit auth order for openai has no usable profiles.[fresh, stale], and status reported a usable Codex runtime route.openclaw agent --localLuna turn returned exactlyISSUE_135140_EXACT_HEAD_GREEN_2through provideropenai.models auth login --provider openai --agent mainfailed on the baseline because local order stayed absent; passed after the fix with[fresh, stale].git diff --check: passed.Production delta:
+4/-5(net-1). Test delta:+108/-0.