Archived chats show a Delete button, but deletion does not work
Open 💬 13 comments Opened Jun 13, 2026 by zengwq18
What version of the Codex App are you using (From “About Codex” dialog)?
Codex Desktop App: 26.609.41114 (3888)
Bundled Codex CLI: codex-cli 0.140.0-alpha.2
What subscription do you have?
Not specified
What platform is your computer?
macOS 26.5.1 (25F80)
What issue are you seeing?
In the Codex app's archived chats / archived threads screen, there is a Delete button, but clicking it does not delete the archived chat.
This makes the UI misleading: the button appears available, but the archived conversation remains and cannot be removed from that screen.
What steps can reproduce the bug?
- Open Codex Desktop on macOS.
- Go to Settings.
- Open the archived chats / archived threads section.
- Find an archived conversation.
- Click the Delete button shown for that archived chat.
- Observe that the archived chat is not deleted.
What is the expected behavior?
Clicking Delete should either permanently remove the archived chat after confirmation, or show a clear error/explanation if deletion is not supported.
Additional information
Suggested fix: either make the Delete button functional in the archived chats screen, or hide/disable it with an explanation if archived chats cannot currently be deleted.
13 Comments
yeah,I have the same issue just like u
“Windows에서도 재현, ~/.codex/archived_sessions 수동 삭제하면 사라짐”
Disclosure
This comment is based on a Codex Desktop issue I reproduced locally. Codex itself identified and troubleshot the local persistence state, then performed a targeted workaround deletion for an earlier affected archived chat by removing the stale local records. My role in that workaround was verification: I restarted the Codex Desktop app and the macOS host, then confirmed the affected archived chat was fully gone.
For this comment, I created a fresh, non-sensitive test thread to reproduce the same bug cleanly. I also used Codex/LLM assistance to summarize the evidence and format this GitHub comment, and I reviewed the contents before posting.
I can reproduce this on Codex Desktop for macOS with that fresh, non-sensitive test thread. I think this is the same bug, and the extra useful detail is that the UI reports success while the archived thread remains in multiple local persistence stores.
Environment
26.609.411143888codex-cli 0.140.0-alpha.2Codex 149.0.7827.5426.5.1/ build25F8025.5.0 arm64Settings > Archived chatsRepro
``
text
``This is just an example chat to understand Codex's features and capabilities on macOS. Give me top 10 things.
Settings > Archived chats.Actual behavior
Codex shows a success toast:
But the archived row remains visible immediately afterward.
<img width="1512" height="883" alt="Image" src="https://github.com/user-attachments/assets/2ca0494e-62f7-4896-82be-5bc5ae7a4da5" />
In my repro, the still-visible row was:
This Is Just An Example ChatList top 10 macOS features019ec6b3-b929-7c81-92dd-f366855b66faLocal evidence after the delete action
The thread still exists in
state_5.sqliteas archived:Relevant output:
Timestamp conversion:
The archived session file also remains on disk:
Output:
session_index.jsonlstill references it:logs_2.sqlitestill has rows for the same thread:Output:
Codex also checked
.codex-global-state.jsonwithout dumping the full file, because it can contain unrelated prompt history. The affected thread id still exists underheartbeat-thread-permissions-by-idin both.codex-global-state.jsonand.codex-global-state.json.bak.Workaround that removed an earlier affected archived chat
I did not apply this cleanup to the fresh repro thread above, so that repro evidence remains intact. However, Codex used the same cleanup logic on an earlier affected archived chat on my machine. After Codex removed the stale records, I restarted both Codex and macOS and verified that the earlier archived chat was fully gone.
This is the workaround cleanup logic, parameterized by
THREAD_ID. It is not an official fix; it is included only to show which local persistence stores had to be reconciled before the archived chat actually disappeared.Interpretation
This looks like the delete handler either:
The stores that remained involved in this repro were:
~/.codex/sqlite/state_5.sqlite~/.codex/sqlite/logs_2.sqlite~/.codex/session_index.jsonl~/.codex/archived_sessions/*.jsonl~/.codex/.codex-global-state.json~/.codex/.codex-global-state.json.bakExpected behavior: after the delete action succeeds, the archived row should disappear and should not remain as
archived = 1in local thread state.Adding another macOS repro.
Environment:
codex-cli 0.140.0-alpha.2~/.codex/sqlite/state_5.sqliteObserved behavior:
archived = 1inthreadsafter the UI-side delete attempt.~/.codex/session_index.jsonl.~/.codex/archived_sessions/.Expected behavior:
Workaround used locally:
This matches the behavior described in this issue: the UI exposes deletion for archived chats, but the archived chat remains in local persistence afterward.
This still happens in the latest build 26.609.71450.
Adding another Windows reproduction.
Environment
25H2, build26200.8457, 64-bitOpenAI.Codex26.609.9530.0OpenAI.Codex_26.609.9530.0_x64__2p2nqsd0c76g0codex-cli 0.118.0Settings > Archived chatsReproduction Steps
Settings > Archived chats.Actual Behavior
The UI reports that the archived chat was deleted, but the archived chat is not actually removed.
Expected Behavior
If deletion is supported, the archived chat should be removed and should not reappear.
If deletion is not supported yet, the UI should not show a successful deletion message. It should show a clear error, or disable/hide the delete action instead.
Notes
I am intentionally not including local thread IDs, local file paths, screenshots, or chat contents that may contain private workspace/chat information.
I have not attempted any manual local-state cleanup. A supported fix or documented safe cleanup method would be helpful.
why this issue still exists in the new version?
Disclosure: This follow-up was drafted with Codex from my direct user experience. Codex performed the local troubleshooting and cleanup checks; I reviewed the results. My role here was to verify the visible outcome in the Codex Desktop app and macOS host after restart.
Additional finding: archived chat deletion also appears to leave stale
config.tomlstate behind.After the archived-chat deletion problem and manual cleanup, Codex found that my local
~/.codex/config.tomlstill contained trusted project entries for workspaces that no longer existed. The relevant shape was:That
this-is-just-an-example-chatworkspace was the clean reproduction chat created for this issue. It had already been deleted from the archived chat store and local filesystem, but the corresponding project trust entry remained inconfig.toml.Codex then checked all
[projects.*]entries in~/.codex/config.tomlagainst the filesystem and found multiple stale trust entries whose directories no longer existed. Some were from previously deleted archived/projectless Codex chats. After removing those stale blocks, validation showed:This looks like a second residue path from the same deletion bug:
~/.codex/config.tomlcan still retain[projects."<deleted workspace>"] trust_level = "trusted"entries for deleted archived/projectless chat workspaces.I am not claiming the stale
config.tomlentry is what keeps the archived chat visible in the UI. It may be a separate leftover. But it is still persistent local state associated with deleted archived chats, and it means "delete archived chat" does not fully clean the local Codex instance.Suggested implementation consideration:
[projects."<cwd>"]trust entry from~/.codex/config.toml.This seems to be fixed by the latest build 26.611.61049.
In the latest version ,this issue has been corrected!
The latest version has been fixed
Confirming this is fixed for me after updating Codex Desktop.
On Windows, this works correctly again in Codex version 26.611.8273.0.