You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop app: existing conversations do not pick up updated API credentials, causing stream disconnected errors #29160
When switching API providers or credentials (e.g., changing model_providers config with a new API key and base URL), existing desktop app conversations continue using the old credentials cached in their session. This causes stream disconnected before completion: stream closed before response.completed errors.
CLI sessions are unaffected because each new CLI session starts fresh with the current config.
To Reproduce
Configure ~/.codex/config.toml with a custom provider (e.g., Provider A) and start a conversation in the desktop app.
Update config.toml to point to a different provider or API key (e.g., Provider B).
Continue the existing conversation in the desktop app.
Observe: stream disconnected before completion
Expected behavior
The desktop app should either:
Refresh credentials at the start of each turn, or
Clearly indicate that the session is stale and suggest starting a new conversation
Workaround
Start a new conversation in the desktop app. New conversations correctly use the updated config.
Activity
github-actions commentedon Jun 20, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action