codex - 💡(How to fix) Fix Windows Desktop: API-login threads disappear from sidebar after restart, but still exist locally [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19345Fetched 2026-04-25 06:11:10
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4cross-referenced ×2commented ×1
RAW_BUFFERClick to expand / collapse

Version

Codex Desktop on Windows (MSIX / Microsoft Store)

App package version:

  • 26.422.2437.0

Thread/session metadata also shows:

  • cli_version: 0.124.0-alpha.2

Bug

When using API login in Codex Desktop on Windows, conversation threads disappear from the left sidebar after restarting the app.

This does not appear to be actual data loss.

Expected behavior

API-login conversations should remain visible in the left sidebar after restart, similar to account / ChatGPT login.

Actual behavior

After restarting Codex Desktop:

  • API-login threads disappear from the left sidebar
  • pinned or currently opened threads can still display normally
  • account / ChatGPT login history behaves normally

What I verified

The threads still exist locally:

  • C:\Users\Administrator\.codex\sessions\...
  • C:\Users\Administrator\.codex\session_index.jsonl
  • C:\Users\Administrator\.codex\state_5.sqlite

I confirmed that affected threads still have:

  • rollout/session files on disk
  • index entries in session_index.jsonl
  • rows in state_5.sqlite with archived = 0

So this looks like a sidebar thread-list restoration / visibility issue, not conversation deletion.

Repro steps

  1. Open Codex Desktop on Windows
  2. Sign in with API login
  3. Start one or more conversations
  4. Close Codex Desktop completely
  5. Reopen Codex Desktop
  6. Observe that the API-login threads are missing from the left sidebar

Notes

I also tried clearing app-local package data under:

  • C:\Users\Administrator\AppData\Local\Packages\OpenAI.Codex_2p2nqsd0c76g0

That did not fix the issue.

Example affected thread id:

  • 019dbec3-6c63-7ac0-878f-9ed85eb5bcf5

extent analysis

TL;DR

The issue is likely due to a problem with restoring API-login conversation threads in the left sidebar after restarting the Codex Desktop app, and a potential fix could involve modifying the app's logic for loading and displaying threads.

Guidance

  • Verify that the session_index.jsonl file and state_5.sqlite database are being correctly read and parsed by the app after restart, as the threads seem to still exist locally.
  • Check the app's code for any differences in handling API-login conversations versus account/ChatGPT login conversations, as the latter behaves normally.
  • Investigate the possibility of a caching issue, where the app is not updating the sidebar thread list after restart, despite the threads still being present on disk.
  • Review the app's logic for filtering or hiding threads in the sidebar, as the pinned or currently opened threads are still visible.

Example

No code snippet is provided due to the lack of specific code details in the issue.

Notes

The issue seems to be specific to API-login conversations and does not affect account/ChatGPT login history, which suggests a potential difference in how these types of conversations are handled by the app.

Recommendation

Apply a workaround by modifying the app's logic for loading and displaying threads, as the root cause of the issue is likely related to the app's internal handling of API-login conversations.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

API-login conversations should remain visible in the left sidebar after restart, similar to account / ChatGPT login.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING