Could not archive conversation
Resolved 💬 12 comments Opened Aug 18, 2026 by DriftAlone Closed Aug 23, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the Codex App are you using (From “About Codex” dialog)?
Codex Desktop MSIX: 26.814.5167.0
What subscription do you have?
Pro
What platform is your computer?
Windows 25H2 x64, build 26200.9168
What issue are you seeing?
I can reproduce a stronger variant of this issue after a recent Windows Desktop update.
Environment:
- Windows 25H2 x64, build 26200.9168
- Codex Desktop MSIX: 26.814.5167.0
- App-server client version in logs: 26.814.41407
- codex-cli: 0.148.0-alpha.15
Regression evidence:
- At 14:30:54, client 26.810.52044 successfully handled
thread/archive: athread/archivedevent was emitted and the rollout file moved into~/.codex/archived_sessions. thread/unarchivealso succeeded at 14:31:04.- After the client updated to 26.814.41407, archive attempts at 14:32:19 and 14:32:44 entered
thread/archive, but the last recorded action was:<br>clearing thread listener during thread-state teardown - No
thread/archivedevent followed. - Both conversations remained in
~/.codex/sessions. list_threadsstill returned both conversations as active/notLoaded, whilelist_archived_threadsreturned an empty list.
Expected:<br>The conversation is moved to archived storage, removed from the active task list, and appears under Archived Conversations.
Actual:<br>The archive request starts and tears down the thread listener, but never completes or persists the archived state.
This looks like a regression in the archive/thread-state teardown path, rather than only the sidebar reconciliation problem originally reported in openai/codex#25541.
What steps can reproduce the bug?
open a new conversation, then try to archive it
What is the expected behavior?
the conversation should be archived
Additional information
No response
12 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Windows x64 confirmation on the same MSIX build:
26.814.5167.0.After updating on 2026-08-18, I have at least three affected local Codex conversations:
thread not found.A direct archive attempt returns:
One affected thread ID is:
01a013b2-9800-75d0-ae83-35e9dbc50a8eThe workspace directory for that thread still exists, and the task record remains readable via the local task listing; nevertheless, archive cannot complete. I have not reset the app, deleted
.codex, or removed the workspace, to avoid destroying potentially recoverable history.This is an end-user confirmation of the Windows 26.814 archive regression described here, with the additional failure mode that the incomplete archive operation leaves threads neither archivable nor deletable.
Affects me too, e.g. thread IDs
01a01096-490e-79e3-ae46-2de9bd6bc293,01a0148c-d321-7fc1-88df-217665aec55a.Follow-up after installing the newer Windows package: the issue is still reproducible, and I collected additional redacted diagnostics that may help narrow down the failing layer.
Environment
26.814.5517.0(x64)26200.91680.148.0-alpha.1526.814.41957Affected threads
The same failure is reproducible for three separate local threads:
01a013b2-9800-75d0-ae83-35e9dbc50a8e01a013b5-6c17-7771-81f6-7a16770fe0a501a017b3-1f3b-7813-aa64-81ce16f194b3Local task titles, workspace paths, account details, and conversation contents are intentionally omitted.
Backend response
Archive requests from the normal recent-tasks menu reached
thread/archive, then failed in approximately 84–151 ms with the same response for all three threads:This is therefore not only a sidebar/UI reconciliation failure: the app-server returns an explicit archive error.
Read/archive state mismatch
Immediately after the failed archive attempts:
thread/readsucceeds for all three threads.thread/turns/listsucceeds for all three threads.notLoaded.archived = 0andarchived_at = NULL.01a013b2-9800-75d0-ae83-35e9dbc50a8e, attemptingturn/startseparately fails with:``
text
``errorCode=-32600
thread not found: 01a013b2-9800-75d0-ae83-35e9dbc50a8e
So this thread can be listed and read, but cannot be continued or archived.
Important filesystem check
Using a read-only inspection of
state_5.sqlite:rollout_path.archived_sessions.This suggests that
os error 2is not simply caused by the primary source rollout JSONL being absent. It may instead involve another path used by the archive transaction, a stale secondary reference, or inconsistent migration/index state. That is an inference; the logs do not identify which internal path produced the error.No application reset, database edit, cache deletion, manual file move, or downgrade was performed. The affected data has been left intact for further diagnosis.
I reproduced this on Windows with the Codex desktop app package:
OpenAI.Codex26.814.5517.0Symptom
Archiving some completed Codex tasks fails with:
The rollout file has not actually been deleted.
Root cause
In
%USERPROFILE%\.codex\state_5.sqlite, affected rows in thethreadstable have arollout_pathusing the Windows extended-length path form:Unaffected rows use:
The file exists and is accessible using both representations. However, the archive implementation fails when
rollout_pathcontains the\\?\prefix.This is not merely old corrupted data. Local tasks that are opened or actively running can write the extended-length path back into the database. Consequently:
\\?\path.This explains why some chats archive successfully while others do not.
Reproduction
threads.rollout_pathin%USERPROFILE%\.codex\state_5.sqlite.\\?\, try archiving the task.os error 2, although the rollout file exists.\\?\prefix from that row.I verified the workaround through multiple archive → restore cycles.
Temporary workaround
With Codex fully closed and after backing up
state_5.sqlite, normalize affected local-drive paths from:to:
Editing the database while Codex is running is not durable because loaded tasks can write the extended path back.
Suggested product fix
The thread store should treat ordinary Windows paths and extended-length Windows paths consistently.
Suggested changes:
rollout_pathbefore persisting it or before archive/unarchive filesystem operations.threads.rollout_pathrows, after confirming the corresponding file exists.C:\...rollout paths;\\?\C:\...rollout paths;The important detail is that
\\?\C:\...is a valid Windows path. The bug appears to be inconsistent handling of the two valid path representations inside the archive operation.I have the same error, although @weijunswj 's suggestion did not work for me - none of my
threads.rollout_pathbegan with\\?\. I sent feedback ID01a019ee-a09c-71d1-bc17-89da41325b0c. When I try to type anything into that thread's chat, I see this error:thread not found: .....Feedback ID
01a020f1-07ab-7c11-b993-7e37053023b7- getting this error as well. My chat list is just becoming messy.It'll be nice if this was resolved
Powershell script to archive. Can't guarantee that it won't break the local state (at least it's not for now) so use it at your own risk.
This changes DB state only, so run this, then click archive in the UI. At least my old unarchivable convo has disappeared from my view (I rarely dig them out, and if I do, I refer them by UUID in a new conversation instead).
Usage:
Requires python 3 and sqlite.
Archive-Codex.zip
Follow-up from another Windows x64 installation: this remains reproducible on a newer Codex Desktop package, even after a full desktop restart.
Environment:
Reproduction:
01a014d1-afaf-79d1-8866-01a9ca6154e5.Backend response:
Immediately after the post-restart failure:
notLoaded.archived = 0andarchived_at = NULL.Read-only checks:
state_5.sqlitereturnsPRAGMA integrity_check = ok.\\?\\C:\\..., while the corresponding workspace directory also exists.Across the local logs I found 18 failures involving 5 distinct threads, while 17 other distinct threads had historical archive successes. The post-restart failure on the newer 26.818 package supports the extended-path/thread-store hypothesis, but I have not modified the path to test the workaround.
Hopefully fixed in CLI version >= 0.149 / GUI version >= 26.818.3698.
This is still reproducible on a Windows GUI build newer than the version mentioned as fixed above.
Environment:
Reproduction/result:
notLoaded, is absent from the archived list, and its database row remainsarchived = 0/archived_at = NULL.\\?\prefix).Sanitized log boundary for the failed attempt:
There is no subsequent
thread/archive,thread/archived, or error in the log, and the state does not change. For comparison, a successful archive on the same machine in an earlier build loggedcodex-home requestfollowed immediately by a successfulthread/archiveresponse.So this reproduction appears to stall before
thread/archiveis dispatched, rather than failing later withos error 2. Since the GUI build is newer than 26.818.3698, could this issue be reopened or linked to the active tracking issue/fixed build?