Switching global provider hides previous sessions from the sidebar
Open 💬 11 comments Opened Apr 10, 2026 by bakaburg1
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
Switching the global provider should not make previous chat sessions disappear from the Codex app sidebar.
Current behavior
- I create sessions with one provider.
- I switch the global provider.
- Older sessions no longer appear in the sidebar.
Expected behavior
Previous sessions should remain visible and accessible even after changing provider.
If sessions are being filtered by provider, the UI should make that explicit and let me view sessions from other providers.
Why this matters
Changing provider is a normal workflow when testing OpenAI, Azure, or local models. It should not hide session history.
11 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This sounds very close to the provider-bucket visibility problem that
codex-threadripperwas built for.Project: https://github.com/Wangnov/codex-threadripper
It checks how Codex threads are distributed across
model_providervalues instate_5.sqliteand the rollout JSONL metadata, then can reconcile them so Codex Desktop /codex resume/ app-server clients see the same local history after provider switches.Suggested safe flow:
It writes backups before mutating local state. Still, please back up
~/.codexfirst, especially if your sessions contain important work.Important caveat: this is an unofficial workaround for local history visibility. It does not migrate encrypted conversation ownership across accounts/providers, and it should not replace an official Codex fix for provider-aware history listing/resume behavior.
@Wangnov Thanks!
@steveepreston
no gui and not planned, sry.
Yeah it can be continued, but you need to confirm that two bucket are encrypted by the same way.
Such as
openai(ChatGPT Oauth) and other provider by ChatGPT Oauth just name different.ChatGPT Oauth and Vertex/AWS/... are encrypted by different way. So will failed.
@Wangnov thanks for explain.
can Move
openaichats into9routerbucket?Of course you can.
If your "9router" is like this, it will work.
@Wangnov Thanks!
Provider changes should not mutate session visibility without an explicit filter.
Keep
model_provideras metadata on the session row, then let the sidebar default toall providerswith provider badges. If a session cannot be resumed under the active provider, show a compatibility warning and the original provider/root rather than hiding it.---
_Generated with ax._
@Necmttn Agree
Optionally, there could be a setting forbidding codex sessions to be able to see other sessions, in case one has data security issues, but I would not make it the default
and in OpenCode you can change provider even midway in the session