Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.616.71553
What subscription do you have?
ChatGPT Pro
What platform is your computer?
Darwin 25.5.0 arm64 arm
What issue are you seeing?
Summary
In Codex Desktop, the Archived Chats page shows "No archived chats", but local state indicates that archived threads still exist.
The data does not appear to be lost. The SQLite database is healthy, archived threads exist, previews are non-empty, and rollout files still exist on disk.
Environment
- Product: Codex Desktop App
- Codex App version: 26.616.71553
- CLI version: codex-cli 0.142.2
- Platform: macOS
- State database: ~/.codex/state_5.sqlite
Steps to Reproduce
- Open Codex Desktop.
- Archive one or more chats.
- Go to Settings.
- Open the Archived Chats page.
- The page shows no archived chats.
Expected Behavior
Archived chats should appear in the Archived Chats page and be available for unarchive or review.
Actual Behavior
The Archived Chats page is empty and shows no archived chats.
Investigation
I inspected the local Codex state database and found that the archived data still exists.
Results:
pragma integrity_checkreturnsokthreadstable contains archived threadsarchived=1thread count: 4archived=1 AND preview<>''count: 4archived=1 AND preview=''count: 0- All archived thread
rollout_pathfiles exist ~/.codex/archived_sessionscontains archived jsonl files
Archived thread examples:
| id | title | preview length | archived | rollout_path |
|---|---|---|---|---|
| 019f0170-9346-7330-a867-633956d633bd | Archived SmartTraffic audit thread | 500 | 1 | exists |
| 019ef8fc-ddf8-7071-ac8d-db163bdf3501 | SmartTraffic Stage 5 closing docs/tag thread | 2343 | 1 | exists |
| 019ef38d-a3e2-7483-85d9-2e1d8e8d5a77 | SmartTraffic Stage 5A thread | 3060 | 1 | exists |
| 019ef268-affe-70c2-9b6b-a7593a174dbf | SmartTraffic Stage 5B pre-commit review thread | 4153 | 1 | exists |
Additional Notes
This does not look like data loss or SQLite corruption.
It looks more like the Archived Chats page is using an additional UI filter, stale cache, or query condition that does not match the actual archived thread data in state_5.sqlite.
I previously had another issue where normal history threads were hidden because their preview field was empty. After filling missing previews, normal history became visible again. However, the Archived Chats page is still empty even though archived thread previews are non-empty.
What steps can reproduce the bug?
- Open Codex Desktop.
- Archive one or more conversations.
- Open Settings.
- Open the "Archived Chats" page.
- The page shows "No archived chats".
However, the local state still contains archived threads.
I verified that:
state_5.sqliteis healthy (pragma integrity_check = ok)archived=1threads still exist- archived thread previews are non-empty
- archived rollout files still exist on disk
What is the expected behavior?
Archived conversations should appear in the Archived Chats page and be available for viewing or restoring.
Additional information
Additional local investigation:
The issue does not appear to be data loss.
Local checks show:
state_5.sqliteintegrity check:okarchived=1threads: 4archived=1 AND preview<>'': 4archived=1 AND preview='': 0- All archived thread
rollout_pathfiles exist ~/.codex/archived_sessionscontains archived.jsonlfiles
This may be related to #28664, but my case specifically affects archived=1 threads and the Archived Chats page.

Activity
github-actions commentedon Jun 27, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Nicolas0315 commentedon Jun 27, 2026
I traced the repo-owned path for this one. In this checkout I could not find a
list-archived-threadsor Archived Chats webview implementation; the protocol exposed here isthread/list, witharchivedanduseStateDbOnlyparameters.What I verified locally on current
main(d047c33a1):The backend code path already routes
thread/listwitharchived: trueto the archived listing, and whenuseStateDbOnlyis also true it calls the state-db archived listing path. So I don't currently see a Rust-side data-loss or missing-archive-listing bug in this repo.This lines up with #29600's bundle inspection: the Desktop Archived Chats page appears to use a client/webview-side
list-archived-threadspath that is not present in this repository, and that likely needs the UI-side fix. A useful next check in the Desktop app would be to inspect the actuallist-archived-threadsresponse forhostId: localand compare it with what the page passes into its archived-thread renderer.xulong-jia commentedon Jun 27, 2026
lophura33-wq commentedon Sep 2, 2026
Windows reproduction after a Codex Desktop update/restart (2026-09-02):
archived_sessionsdirectory still contained 198 readable JSONL rollout files, so the transcripts were not deleted.archived_sessionsback into the activesessionsdirectory.0.151.0-alpha.7.2.This appears to be an update-triggered local thread indexing/sidebar hydration regression rather than data loss or a failure of the archive/unarchive file operation. Both archived discovery and post-unarchive list visibility are affected.
Project names, thread IDs, conversation contents, and local paths have been omitted.
jsegeren commentedon Sep 19, 2026
For anyone blocked while the Desktop archive view is fixed: I maintain an independent Mac tool that reads the supported active and archived local Codex transcript trees directly, so an archived thread can still be found and exported even when the Codex UI says none exist. It also creates client-side encrypted, versioned backups and can recover one missing transcript without replacing unrelated live history.
It does not repair OpenAI's archived-thread index or claim to fix this UI bug; it gives the surviving local transcripts a separate read-only discovery and recovery path. Source and CLI are MIT licensed: https://github.com/jsegeren/codex-migrate
Disclosure: I maintain Codex Migrate + Vault. The packaged signed Apple-silicon app is paid; the engine and CLI are free.
ikaros0202 commentedon Nov 20, 2026
I can still reproduce this on Windows 11 x64 (build 26200) with Codex Desktop
26.1117.3838.0and the bundledcodex-cli 0.171.0-alpha.13. This affects local Codex chats, including chats in local projects.I ran these checks on November 20, 2026:
state_5.sqlitefound 64 rows witharchived = 1(37 regular chats and 27 subagent records). SQLitePRAGMA quick_checkreturnedok.thread/listwith{"archived":true,"limit":5}returned an empty page and no next cursor, without an RPC error. Adding"useStateDbOnly":truegave the same result. The same app-server returned five chats and a next cursor with{"archived":false,"limit":5}.archived = 0.Could the team investigate why the local app-server returns an empty archived page while the same installation can read and restore an archived chat by ID? The direct RPC reproduction may help narrow down where the records are being excluded.