Threads generated by automations have been automatically archived
Resolved 💬 10 comments Opened Mar 26, 2026 by pgxxhh Closed May 27, 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)?
26.324.21641
What subscription do you have?
chatGPT plus
What platform is your computer?
Darwin 24.6.0 arm64 ar
What issue are you seeing?
<img width="738" height="379" alt="Image" src="https://github.com/user-attachments/assets/289d8b1a-a235-4c68-95df-44f57bbb4b61" />
What steps can reproduce the bug?
After tapping “Update” in the Codex app and the app restarts automatically, the automations threads will be automatically archived.
What is the expected behavior?
_No response_
Additional information
Threads generated by automations shouldn't be archived
10 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
THIS IS NOT MY ISSUE YOU CLOSED MY OTHER AS A DUPLICATE OF THIS
OPENAI IS NOT LISTENING TO CUSTOMERS - THIS IS A SYMPTOM OF AN ISSUE, YOUR AUTOMATIONS ARE BROKEN NOW BY DESIGN AND ARE COVERING IT UP
https://github.com/openai/codex/issues/15875
Keep closing my related tickets. It's fine, I canceled, I wanted this to work but you're actively working hard to break the app.
https://github.com/openai/codex/issues/15878
GITHUB IS BROKEN THIS AUTOMATION IS BROKEN
I'M CANCELING MY SUBSCRIPTION TO OPENAI
I had the same problem. In my case, it was caused after i cleaned up some branches in my local repository. I removed my local master branch and since the automations always start a worktree from that branch, it failed to create it.
They'll just close it. CODEX is now getting worse than it was when I filed these. Company closes valid defects because they don't like users are upset with them. Company is going to fold.
I’m seeing the same class of issue on macOS with newer builds, with one extra signal: the affected automation runs had already produced inbox/report items before being auto-archived.
Environment:
26.429.20946(build2312)0.128.0-alpha.1ACTIVEand continue to scheduleObserved:
~/.codex/sqlite/codex-dev.dbshowsautomation_runs.status = ARCHIVED,archived_reason = auto, and non-emptyinbox_title/inbox_summaryfor the affected runs.~/.codex/state_5.sqlitehas matching archived thread rows.Relevant Desktop log excerpt:
This differs from cases where the automation produced no output: here Codex had already created reportable inbox items, but the startup/cleanup path still archived the runs automatically.
I hit the same issue again on a newer macOS Codex Desktop build, specifically after using the in-app update flow.
Environment:
26.506.31421(bundle version2620)0.129.0-alpha.1526.3.1arm64execution_environment = worktreeWhat happened:
2026-05-09 09:00Europe/Lisbon and created a new chat/run titledОбзор почты за день.Local evidence for the affected run:
019e0bc0-73c8-70f1-acf8-ab02ecb20398state_5.sqlite.threadsoriginally hadarchived = 1,archived_at = 1778321546(2026-05-09 10:12:26 UTC), androllout_pathunder~/.codex/archived_sessions/~/.codex/sqlite/codex-dev.db.automation_runsstill has:status = ARCHIVEDarchived_reason = autocreated_at = 2026-05-09 08:00:22 UTCupdated_at = 2026-05-09 10:12:26 UTCinbox_title/inbox_summaryRelevant desktop log lines:
Manual recovery confirmed the symptom: moving the rollout JSONL from
~/.codex/archived_sessions/back to~/.codex/sessions/2026/05/09/and settingstate_5.sqlite.threads.archived = 0,archived_at = NULLmade the chat reappear in All chats.This looks like the startup/update cleanup path is treating a completed automation run with generated inbox items as a pending run and auto-archiving it after restart/update.
I hit the same issue on a newer Codex Desktop build, with details redacted for privacy. This instance may add two useful signals beyond the earlier reports: one cleanup archived multiple automation-created project threads at once, and manual unarchive later rewrote the automation run rows to
ACCEPTED, so the current DB state no longer preserves the pre-cleanup status.Environment:
26.513.20950(bundle version2816)26.2arm64What happened:
After quitting/reopening Codex while testing the new remote connection / update flow, three automation-generated project threads disappeared from the project UI. They were later found under archived threads and could be restored with the app's manual unarchive flow.
The affected runs were from three consecutive days:
Local output files for the completed earlier runs still existed, so this was not local output loss. The project UI threads were hidden because the underlying conversations had been archived.
Relevant log evidence, with conversation ids redacted:
The completed earlier runs had already created inbox/report items:
On reopen/startup, Codex ran automation cleanup:
Immediately after that cleanup, the app archived all three conversations:
For the interrupted current-day run, the preceding resume log showed it was still in progress:
After manually unarchiving the three threads through the app UI,
automation_runs.statusfor those rows becameACCEPTED, withupdated_atmatching the manual unarchive time. The three affected rows also retained non-empty archived message payloads, unlike earlier accepted runs that were not caught by this cleanup:So in this case the current
ACCEPTEDstatus is not evidence that these rows were accepted before cleanup; it appears to be a side effect of the later manual unarchive path.Code-path clue from the packaged app:
The cleanup path appears to call
list-pending-automation-run-threads, whose query selects only pending statuses:The inbox update path appears to move completed runs from
IN_PROGRESStoPENDING_REVIEWwhen inbox/report data is written:And the unarchive path appears to turn archived automation runs into
ACCEPTED:This matches the observed behavior:
PENDING_REVIEW.thread/archive, hiding the project threads.ACCEPTED, obscuring the original pre-cleanup status.Expected behavior:
Completed automation-created project threads with generated inbox/report items should not be archived from the project UI by startup/update cleanup simply because their automation run status is still
PENDING_REVIEW. At minimum, cleanup should avoidthread/archivefor visible project conversations unless there is a stronger stale-run condition or explicit user action.I hit this same class of issue on a current macOS Codex Desktop build, with local evidence from the manual unarchive path.
Environment:
26.519.31651(CFBundleVersion3017)worktreeskill-progression-map019e4d69-9d47-71b1-a5d6-3864d98b97f2Observed:
The corresponding automation run row now shows:
This lines up with the earlier comments here: manual unarchive appears to recover the visible thread and rewrite the automation run into
ACCEPTED, so the current DB state no longer proves what the pre-cleanup status was.Expected behavior: a completed automation run with generated inbox/report output should remain visible in previous runs across logout/login, or at least should not be moved to archived automatically by startup/login cleanup.