Skip to content

MacOS desktop app keeps undeletable "ghost" conversations in the sidebar after deletion #41987

Open

Description

@caseclose

Environment

  • App: ChatGPT macOS desktop app (Codex-based), version 26.825.51511 (latest)
  • OS: macOS (Apple Silicon)
  • Account: [email protected] (Plus)

Description
After deleting several conversations, their titles remain stuck in the desktop app's sidebar "Recent" list. These ghost entries:

  1. Show "Unable to load this ChatGPT conversation" when clicked;
  2. Fail with "Chat could not be deleted" when using right-click → Delete chat;
  3. Fail with "Conversation could not be archived" when using Archive;
  4. Redirect to the chatgpt.com homepage when opened via "Open on chatgpt.com" — the conversation no longer exists server-side (e.g. conversation ID: 6a915541-a670-83ea-a3a1-baea4345992d);
  5. Do NOT appear in the web sidebar, so the issue is specific to the desktop app's conversation list index.

Troubleshooting already attempted (none worked)

  1. Fully quitting and relaunching the app;
  2. Deleting local app data and caches (~/Library/Application Support/com.openai.codex, ~/Library/Caches/com.openai.codex) — the list was restored identically after relaunch;
  3. Signing out and signing back in — ghost entries persist and delete/archive still fail;
  4. Confirmed the app is on the latest version.

Conclusion
The conversation objects were deleted server-side, but the desktop app's conversation list index retains stale references. Delete/archive requests fail because the target no longer exists, so the list cannot self-heal. The state is account-bound (server-side), independent of device or local data.

Request
Please purge the stale entries from my account's desktop conversation list, or fix the sync bug where deleting a non-existent conversation leaves a permanent sidebar entry.

Activity

  1. added
    bug
    app
    session
    on Sep 1, 2026
  2. guimachala commented on Sep 3, 2026

    @guimachala

    I can reproduce this exact issue in the ChatGPT macOS desktop app with a ChatGPT Business workspace.

    The cloud Work conversation “Teste em nuvem” was deleted successfully and no longer appears on chatgpt.com.

    However, it remains permanently visible under Recents in the macOS desktop app. When selected, the app shows:

    “Não foi possível carregar esta conversa do ChatGPT”
    (Unable to load this ChatGPT conversation)

    Already tried:

    • Fully quitting and reopening the desktop app
    • Signing out and signing back in
    • Confirming the conversation is gone from the web version

    I also submitted diagnostic feedback from the desktop app.

    Feedback ID:
    no-active-thread-01a0696b-c253-7f91-8b0f-99eed7df5407

    Environment:

    • ChatGPT Business workspace
    • macOS
    • Desktop app
  3. tuipsam commented on Sep 4, 2026

    @tuipsam

    I can reproduce the same issue in the ChatGPT macOS desktop app, build 26.831.21537.

    Two ordinary ChatGPT conversations remain as undeletable sidebar entries:

    • Conversation ID 6a9864b1-7cbc-83e8-a8f0-5613633c0293
    • Conversation ID 6a9a1de0-75cc-83e9-a1c6-5559519df56d

    Observed behavior:

    • Clicking either entry shows that the conversation cannot be loaded.
    • The desktop logs return HTTP 404 with conversation_deleted for both IDs.
    • One ID also briefly returned conversation_inaccessible before subsequent requests returned conversation_deleted.
    • A delete request also returns 404 because the server already considers the conversation deleted.
    • The entries are normal ChatGPT conversations (source_kind=chatgpt), not Codex threads, so the Codex archive operation cannot remove them.
    • Mobile and web clients display the expected cloud state.
    • Fully quitting/relaunching and signing out/in did not remove the stale desktop entries.

    No conversation contents or local filesystem paths are included here. This appears to be the same stale desktop conversation-index behavior described in this issue.

  4. se1961 commented on Sep 5, 2026

    @se1961

    I’m seeing the same issue on macOS, specifically with chats deleted from the ChatGPT iPhone app.
    The deletion succeeds on iPhone, but the deleted conversation remains visible in the Mac app sidebar. Clicking the orphaned entry produces:
    “Could not load this ChatGPT conversation”
    Troubleshooting already performed:

    • Completely removed and reinstalled the ChatGPT Mac app. This temporarily cleared the orphaned entries, but the problem returned after deleting additional chats on iPhone.
    • Used “Log out of all sessions” and terminated 16 active sessions, then signed back in. The problem still persists.
      This appears consistent with the conversation being deleted successfully on the server while the macOS conversation-list/Recents state is not being invalidated or synchronized correctly.
      Related in-product feedback IDs:
      no-active-thread-01a0716c-7169-71e3-ac8c-edf993ee177b
      no-active-thread-01a07178-f17f-7af3-9533-687dd37ac2a5
      I also have screenshots showing the stale sidebar entry and the “Could not load this ChatGPT conversation” error.
  5. dev-kdy commented on Sep 5, 2026

    @dev-kdy

    Independent reproduction on the current macOS desktop build.

    Environment

    • ChatGPT Desktop: 26.901.20858 (build 7658)
    • macOS: 26.6.2 (build 25G83)
    • Apple Silicon, arm64

    Observed behavior

    • One server-deleted, projectless ChatGPT conversation remains visible in the macOS Desktop sidebar as a ghost entry.
    • Selecting it triggers GET /conversation/<id> and returns HTTP 404, errorCode=conversation_deleted, can_retry=false.
    • Trying Delete triggers DELETE /conversation/id/<id> and returns the same terminal 404 conversation_deleted; Desktop shows the generic “Failed to delete chat” toast.
    • The matching GET and DELETE events were captured at 2026-09-05 21:53 KST.
    • Fully quitting and reopening the app, then signing out and signing back in, did not remove the entry.

    Read-only local confirmation

    A read-only inspection found exactly one matching row in:

    • database: ~/.codex/sqlite/codex-dev.db
    • table: local_thread_catalog
    • source_kind = chatgpt
    • missing_candidate = 0
    • project state: projectless

    PRAGMA integrity_check returned ok. The target is absent from the current authoritative thread inventory and is not a local Codex rollout/thread. No database or local file was modified during diagnosis.

    The conversation identifier is intentionally redacted here as 6a97ba3b-…-9d43; the full identifier and sanitized log lines can be provided to an OpenAI maintainer through a private channel if needed.

    Expected behavior

    When GET or DELETE returns terminal conversation_deleted with can_retry=false, Desktop should treat the operation as an idempotent local removal signal and evict the matching local_thread_catalog entry instead of preserving an undeletable sidebar item.

  6. t1anhe commented on Sep 7, 2026

    @t1anhe

    Reproduced on a newer macOS desktop build:

    • ChatGPT Desktop: 26.901.51231 (build 8109)
    • Bundled Codex CLI: 0.153.4
    • macOS 26.5.2 (25F84), Apple Silicon / arm64

    Two server-deleted, projectless ChatGPT conversations remained visible as undeletable entries in Recents.

    • GET /conversation/<id> returned HTTP 404 with errorCode=conversation_deleted and can_retry=false.
    • Retrying Delete called DELETE /conversation/id/<id> and returned the same terminal 404, while Desktop displayed “Failed to delete chat.”
    • Both stale references remained in ~/.codex/sqlite/codex-dev.db, table local_thread_catalog, with source_kind=chatgpt and missing_candidate=0.
    • The authoritative thread reads could not find either conversation.
    • Resetting the derived ChatGPT thread catalog removed the stale local references; cloud conversations, projects, and local Codex threads were left untouched.

    This confirms the bug still exists in build 8109. Desktop should treat terminal conversation_deleted responses as an idempotent local-removal signal and evict the corresponding catalog entry instead of preserving an undeletable Recents item.

  7. CyberCr33p commented on Sep 7, 2026

    @CyberCr33p

    Is any workaround for this issue?

  8. se1961 commented on Sep 7, 2026

    @se1961
  9. 0xsiddharthks commented on Sep 7, 2026

    @0xsiddharthks

    I hit this on macOS with ChatGPT Desktop 26.901.51231 (build 8109) and can confirm that targeted local catalogue cleanup fixed it for me.

    This affected an ordinary ChatGPT conversation under Recents. I had already deleted it, but its title remained in the desktop sidebar and both Delete and Archive failed. Signing out/in, fully quitting the app, and stopping the ChatGPT/Codex processes did not clear it.

    The recovery described in this comment on #39897 matches what worked in my case. The stuck entry was a single row in:

    ~/.codex/sqlite/codex-dev.db
    table: local_thread_catalog
    source_kind: chatgpt
    missing_candidate: 0
    

    The app's task-list tool did not return this entry, even though it was still visible in the sidebar and present in that catalogue.

    After making a SQLite-consistent backup, I removed only the exact matching (host_id, thread_id) catalogue row in a transaction. The repair followed the installed client's applyAuthoritativeRemoval bookkeeping: advancing that host's observation sequence and incrementing local_thread_catalog_metadata.catalog_revision. There was no active scan checkpoint for the affected host; its sync watermark was left unchanged.

    Validation:

    • Exactly 1 stale catalogue row removed; 0 matching rows remaining.
    • All 92 other catalogue rows compared unchanged.
    • PRAGMA integrity_check returned ok.
    • After quitting and reopening ChatGPT, the stuck entry disappeared. I confirmed the sidebar was fixed.

    This is a successful recovery of the existing orphan, not evidence that future deletions are fixed. It supports routing already-deleted conversations through the client's local-removal/reconciliation path. Sharing the scoped recovery result here for anyone investigating the bug; I would not clear the entire app database to address this.

  10. mvahedi2020 commented on Sep 8, 2026

    @mvahedi2020

    I solved the mystery today. Anyone likes to know how to kill the ghost chats reply and I will explain how to get rid of all of them without any side effects on your other chats or information

    Not sure why you keep posting the same "I was able to reproduce the issue..." ok so what? Who gives a damn? Fix it

  11. gohitbear commented on Sep 12, 2026

    @gohitbear

    Reporting another macOS desktop case with matching symptoms:

    • Multiple entries remain in the desktop Recent list, while the user reports that the same entries are absent from ChatGPT Web using the same account.
    • Opening an affected entry displays exactly: “无法加载此 ChatGPT 对话” (“Unable to load this ChatGPT conversation”), verified from a user-provided screenshot.
    • The user reinstalled the ChatGPT desktop app; the entries still remain.
    • Separately, 12 genuine local Codex tasks were successfully archived via the supported app management tool. They disappeared from the user's sidebar screenshot. The remaining affected ChatGPT entries were not returned by list_threads, and their titles were not found among the local Codex task database records. The current Codex task was preserved.

    These observations suggest a mismatch between the desktop Recent list and accessible conversation records, but do not establish whether the remaining conversations were deleted, whether this is account/workspace related, or whether stale references are stored locally or remotely.

    Please provide a supported way to remove/reconcile inaccessible Recent entries without deleting valid chats or projects, and ensure that app task-management inventory either includes these entries or clearly reports its coverage limitations. A blanket archive/delete-all operation would exceed the desired scope.

    No private conversation titles, content, screenshots, account identifiers, or logs are attached.

  12. jiyeqian commented on Sep 13, 2026

    @jiyeqian

    Additional evidence from another affected macOS user:

    • The conversation is absent from the ChatGPT web client but remains in the macOS desktop sidebar.
    • Opening it shows Could not load this ChatGPT conversation.
    • Archive/Delete fail.
    • Signing out/in does not clear it.
    • Quick Chat does not clear it either.

    I inspected the desktop app's local SQLite catalog at ~/.codex/sqlite/codex-dev.db. The stale conversation still has a row in local_thread_catalog even though the server-side conversation is gone. Relevant fields for one affected entry:

    source_kind        chatgpt
    missing_candidate  0
    conversation_origin NULL
    project_id          NULL
    

    I am omitting the actual thread ID and title here.

    This confirms the ghost entry is persisted in the desktop thread catalog rather than being only a UI rendering artifact. The missing_candidate = 0 value may also be useful when tracing why reconciliation does not remove the stale row.

    A possible fix is for reconciliation to evict the local catalog entry when the server reports that the conversation no longer exists.

  13. Quinlan-Carter commented on Oct 21, 2026

    @Quinlan-Carter

    Same class of bug, but the cloud/durable-host variant, and the sidebar does not even
    offer Delete:

    • App: ChatGPT Desktop for macOS (Codex Framework 155.0.8059.80)
    • Thread ID: 01a13b02-37e9-7597-947b-bb3fc3cc30e0
    • Title: 修复 TikTok 图片和主页加载
    • Created: 2026-10-14 08:22 PT (UUIDv7 timestamp)
    • Host: hostId=durable over wss://codex-cloud-backend.chatgpt.com/
    • Thread source reported by the renderer: { "custom": "codex-cloud-agent" }
    • Feedback ID from the in-app /feedback dialog:
      no-active-thread-01a15f0b-0405-7050-be0a-e637aa6254dc

    Observed behaviour:

    1. The entry is listed under Recents in the desktop sidebar and in the Codex cloud list
      in the ChatGPT mobile app.
    2. The desktop sidebar row only offers "Pin" and "Archive" — the "Permanently delete"
      item is never rendered. Renderer code gates it on !Lb(hostId), so remote hosts
      never get a delete action; mobile has no delete action either.
    3. https://chatgpt.com/c/<thread-id> returns "not found", so the ChatGPT-side
      conversation is already gone.
    4. Unlike MacOS desktop app keeps undeletable "ghost" conversations in the sidebar after deletion #41987, thread/resume still succeeds (a fresh cloud environment is created),
      but the backing data is partially missing:
      • desktop logs: sa_server_request_failed … {"detail":"Not Found"} and
        Conversation state not found
      • mobile: opening "Files" for this thread returns a Codex error
    5. Local state is not the cause: the thread id exists in no local SQLite database, no
      session/rollout file, and no Chromium storage. It is also absent from
      ~/.codex/sqlite/codex-dev.db local_thread_catalog — that table only has local
      and chatgpt:<account> hosts, no durable host, so the catalog-row workaround does
      not apply.
    6. Entries under electron-persisted-atom-state (thread-tab-routes-v1:<id>,
      heartbeat-thread-permissions-by-id) are regenerated on open; deleting them has no
      effect.

    Request: please purge the durable-host thread record (and any associated environment /
    attachment rows) for this thread id, and consider exposing a delete action for
    remote-host threads so orphaned cloud entries can be removed by the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions