You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop sidebar keeps threads archived/deleted outside the UI (catalog never fully reconciles) #53175
The desktop sidebar reads ~/.codex/sqlite/codex-dev.db → local_thread_catalog. isFullReconciliationDue() is only true when last_full_reconciled_at IS NULL, so after the initial build the catalog is only incrementally updated.
Result: threads archived via codex archive or removed via codex delete stay listed in the sidebar indefinitely. In my case: 1113 stale entries (553 deleted + 560 archived) vs 176 real ones; state_5.sqlite was correct (archived = 1, rollouts moved to archived_sessions/).
Workaround: with the app closed, UPDATE local_thread_catalog_sync_state SET last_full_reconciled_at = NULL WHERE host_id = 'local' and restart → full reconciliation, sidebar correct (1289 → 176).
Suggestion: periodic full reconciliation, or have the app catalog react to archive/delete performed through the CLI / app-server.
Related: the Claude session import (external-agent-import-sync-*) has no path/pattern exclusion, so tool-generated transcripts in ~/.claude/projects/ (e.g. claude-mem observer sessions, claude -p probes) get imported as chats. An exclusion list (paths or globs) would avoid that.
Desktop: 26.1027.51404, build 23880, bundle ID com.openai.codex (installed as ChatGPT).
Desktop's local app-server: 0.166.0-alpha.5.1, as reported in the desktop startup log.
The separate Unix-socket deletion request identified its client as codex-tui 0.164.0.
Default local CODEX_HOME. In this installation the active desktop catalog is ~/.codex/sqlite/codex.db, rather than codex-dev.db.
Observed behavior and persistence checks
One previously saved local CLI conversation remains visible in the desktop sidebar. Opening it fails with no rollout found for thread id <redacted>. Repeated Delete attempts return JSON-RPC -32600, and fully quitting and relaunching the desktop app does not remove it.
The local catalog has initial_build_complete=1; its last_full_reconciled_at is still 2026-10-30 10:40:15 UTC, while normal incremental catalog state has advanced.
Captured sequence
Sanitized excerpts from November 2 (UTC):
02:58:10: a separate app-server process handling thread/delete over a Unix socket logs state_db discrepancy ... stale_db_path, followed by thread/deleted targeted_connections=0.
03:00:00: the desktop sends another thread/delete request through a different app-server process; the desktop log records -32600.
03:01:12, after a full desktop restart: resuming the same stale entry fails with no rollout found.
03:01:19: deleting it again returns -32600. The catalog row remains present and visible.
The process distinction and zero notification targets are investigation leads, not proof of the entire notification-loss mechanism. The original cause of the missing source rollout is unknown; these observations do not establish that the captured deletion operation originally removed it.
Read-only inspection of this installed desktop bundle also found that isFullReconciliationDue checks incomplete initial construction or a null last-full-reconciliation timestamp, with no elapsed-time condition in that predicate. This is consistent with the report's missed-deletion recovery hypothesis, but is not a complete runtime root-cause proof.
Reproduction / regression-test path
The existing broken state is reproducible by opening or deleting the retained sidebar entry, including after a complete restart.
A focused test for maintainers would be: index a disposable persisted local thread in Desktop; delete or archive it through a separate CLI/app-server using the same local store while Desktop is running; verify the canonical source state; then check sidebar convergence, repeated deletion, and convergence after a full desktop restart. This clean-profile test was not newly executed during this investigation.
Expected: a confirmed source-deleted entry should be retired from the derived catalog, and the UI should provide an idempotent way to dismiss it without requiring successful history hydration. Missed cross-process notifications should eventually be recovered by authoritative reconciliation.
No catalog edits, checkpoint resets, or workaround repairs were performed in this diagnostic session. No private conversation title/ID, username, project path, remote-host details, credentials, or raw log files are included here.
— @RicardoMiles In-app Feedback ID (diagnostic conversation):01a19a34-9986-7f13-a55b-dcef42fc696c
Additional macOS reproduction on 2026-11-19, involving Codex Companion tasks in both Recents and a local project.
Environment: ChatGPT desktop for macOS, Apple silicon (arm64), macOS 27.2.1. The app log for the screenshot reports build 27194 (app version 26.1111.21308). The local catalog was also checked with desktop version 26.1111.71704 (build 29030) installed.
Observed: The sidebar displayed older Companion tasks that were already archived. I matched all 26 Companion rows visible in the screenshot to archived local threads. A check of active Codex history returned none of those threads. Three exact-ID spot checks also found archived = 1 and rollouts under archived_sessions/.
Read-only catalog check: In the desktop process's ~/.codex/sqlite/codex.db, all 26 screenshot matches still had rows in local_thread_catalog for host_id = 'local'. The three exact-ID examples had source_kind = 'vscode' and missing_candidate = 0. The local catalog reports initial_build_complete = 1 and a last full reconciliation on 2026-10-31.
Separate archive batch: The desktop's background set_thread_archived action succeeded for 35 finished Companion chats. All 35 were verified in archived history and absent from active history. The desktop log recorded 35 warnings during that batch: [IpcClient] Received broadcast but no handler is configured method=thread-archived. The 26 screenshot rows were older, so the warning is a separate observation and may not explain how those specific rows persisted.
Expected: Once a local thread is archived, both Recents and the project sidebar should omit it, including when the archive was requested through the desktop's background action. The underlying archive state and the desktop catalog should reconcile if an archive notification is missed.
Activity
github-actions commentedon Oct 11, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
RicardoMiles commentedon Nov 2, 2026
Additional macOS confirmation on 2026-11-02, with read-only diagnostics closely matching this issue.
Environment
com.openai.codex(installed as ChatGPT).codex-tui 0.164.0.CODEX_HOME. In this installation the active desktop catalog is~/.codex/sqlite/codex.db, rather thancodex-dev.db.Observed behavior and persistence checks
One previously saved local CLI conversation remains visible in the desktop sidebar. Opening it fails with
no rollout found for thread id <redacted>. Repeated Delete attempts return JSON-RPC-32600, and fully quitting and relaunching the desktop app does not remove it.Exact-ID, read-only checks found:
state_5.sqlite/threadssessions/andarchived_sessions/thread_history_1.sqlitelocal_thread_cataloghost_id='local',source_kind='cli',missing_candidate=0The local catalog has
initial_build_complete=1; itslast_full_reconciled_atis still 2026-10-30 10:40:15 UTC, while normal incremental catalog state has advanced.Captured sequence
Sanitized excerpts from November 2 (UTC):
thread/deleteover a Unix socket logsstate_db discrepancy ... stale_db_path, followed bythread/deleted targeted_connections=0.thread/deleterequest through a different app-server process; the desktop log records-32600.no rollout found.-32600. The catalog row remains present and visible.The process distinction and zero notification targets are investigation leads, not proof of the entire notification-loss mechanism. The original cause of the missing source rollout is unknown; these observations do not establish that the captured deletion operation originally removed it.
Read-only inspection of this installed desktop bundle also found that
isFullReconciliationDuechecks incomplete initial construction or a null last-full-reconciliation timestamp, with no elapsed-time condition in that predicate. This is consistent with the report's missed-deletion recovery hypothesis, but is not a complete runtime root-cause proof.Reproduction / regression-test path
The existing broken state is reproducible by opening or deleting the retained sidebar entry, including after a complete restart.
A focused test for maintainers would be: index a disposable persisted local thread in Desktop; delete or archive it through a separate CLI/app-server using the same local store while Desktop is running; verify the canonical source state; then check sidebar convergence, repeated deletion, and convergence after a full desktop restart. This clean-profile test was not newly executed during this investigation.
Expected: a confirmed source-deleted entry should be retired from the derived catalog, and the UI should provide an idempotent way to dismiss it without requiring successful history hydration. Missed cross-process notifications should eventually be recovered by authoritative reconciliation.
No catalog edits, checkpoint resets, or workaround repairs were performed in this diagnostic session. No private conversation title/ID, username, project path, remote-host details, credentials, or raw log files are included here.
— @RicardoMiles
In-app Feedback ID (diagnostic conversation):
01a19a34-9986-7f13-a55b-dcef42fc696cMkhIr commentedon Nov 19, 2026
Additional macOS reproduction on 2026-11-19, involving Codex Companion tasks in both Recents and a local project.
archived = 1and rollouts underarchived_sessions/.~/.codex/sqlite/codex.db, all 26 screenshot matches still had rows inlocal_thread_catalogforhost_id = 'local'. The three exact-ID examples hadsource_kind = 'vscode'andmissing_candidate = 0. The local catalog reportsinitial_build_complete = 1and a last full reconciliation on 2026-10-31.set_thread_archivedaction succeeded for 35 finished Companion chats. All 35 were verified in archived history and absent from active history. The desktop log recorded 35 warnings during that batch:[IpcClient] Received broadcast but no handler is configured method=thread-archived. The 26 screenshot rows were older, so the warning is a separate observation and may not explain how those specific rows persisted.Expected: Once a local thread is archived, both Recents and the project sidebar should omit it, including when the archive was requested through the desktop's background action. The underlying archive state and the desktop catalog should reconcile if an archive notification is missed.