fix(desktop): persist Codex provider during onboarding - #58589
Nithish-Yenaganti wants to merge 3 commits into
Conversation
|
Thanks for isolating the fresh-onboarding path. The premise is confirmed on current main: The proposed changes address those exact paths: requiring a slug match prevents unrelated model persistence, Automated hermes-sweeper review. |
|
Thanks for the review! The tests pass locally, but CI is still waiting for approval. @teknium1 , could you or another maintainer approve the workflow when you get a chance? Happy to fix anything that comes up. |
4e28328 to
ea94157
Compare
Summary
Fixes fresh Desktop onboarding for OpenAI Codex / ChatGPT login.
The Desktop OAuth worker saved the Codex tokens but did not save the matching provider and default model. Onboarding could then fall back to the first entry returned by
/api/model/options, which could make the first session start on an unrelated provider.Changes
openai-codexand its current default model after Desktop OAuth completes.OPENAI_API_KEYto the canonicalopenai-apiprovider.main.Testing
Result: 16 tests passed.
Backend coverage is included in:
This will also run in CI after the workflow is approved.
Refs #58498
Related: #58527, #56966