codex icon indicating copy to clipboard operation
codex copied to clipboard

[Desktop remote-control] Windows project chat creation leaves persistent path-titled ghost chats on Mac

Open yclovejy opened this issue 3 weeks ago • 6 comments

What version of the Codex App are you using (From “About Codex” dialog)?

Mac desktop app: 26.1106.51428, build 26605, production channel. The built-in updater returned up_to_date on November 11, 2026. The exact Windows desktop build was not reverified during this investigation.

What subscription do you have?

Not collected for this report.

What platform is your computer?

A macOS desktop client connected to a Windows Codex desktop host using built-in remote-control (not SSH).

What issue are you seeing?

Creating a new chat directly in the Windows Codex desktop app, inside an existing project, is associated with extra ghost entries appearing under that Windows host in the Mac sidebar. The ghost entries are titled with the Windows project directory path.

Opening an affected entry returns:

no rollout found for thread id <redacted>

Deleting it through the UI also fails. Restarting the Mac app preserves the entry.

The user has not observed the same behavior when creating ordinary projectless chats. Whether the extra entry first appears before or after the first message is sent has not been established.

Two affected IDs were investigated:

  • Windows-side checks reported no corresponding session-index entry, message history, or rollout file.
  • Mac native remote active/history listing and archived listing did not return either ID. Reading either ID returned not found.
  • The Mac still had exactly two matching host_id + thread_id rows in ~/.codex/sqlite/codex.db, table local_thread_catalog, under the remote-control host.
  • Each row's display_title equaled cwd; its created, updated and recency timestamps were identical; missing_candidate=0.
  • Mac session-index, history and rollout checks also found no backing conversation for these IDs.
  • A native archive attempt failed during thread lookup before it could remove the stale local reference.

What steps can reproduce the bug?

Observed sequence on the affected installation:

  1. Keep the Mac client connected to the Windows host through remote-control.
  2. Directly in Windows Codex, create a new chat in an existing project.
  3. Observe an additional path-titled entry in the Mac's Windows-host sidebar.
  4. Open the extra entry: it fails with no rollout found.
  5. Attempt to delete it and restart the Mac app; the ghost entry remains.

A clean-profile reproduction and the exact first-message timing are still unverified.

Suggested focused reproduction for maintainers:

Compare project and projectless creation. In a project composer, type without sending, then test (a) direct send, (b) changing model/permissions before sending, and (c) abandoning the draft. Capture thread/started, catalog insertion, first-turn and final chat IDs on both clients. These suggested branches have not been run as controlled reproductions in this investigation.

What is the expected behavior?

  • Preparatory/prewarmed threads should not become permanent user-facing ghost entries on another connected client.
  • A prewarmed ID promoted into a real chat must retain its history and project association.
  • When an authoritative, complete remote check confirms a thread is absent, stale local references should be removable and the UI should update.
  • Preserve valid empty chats, all normal conversations, project files and remote connection settings.
  • Do not infer that a chat can be removed merely from an empty title/preview, an offline host, a timeout, or a transient read failure.
  • Behavior should remain correct across reconnects, client restarts, and multiple connected clients.

Additional information

Read-only observations from the installed Mac client code:

  • Project composition can call prewarmConversation / thread/start before formal submission.
  • Hiding locally requested prewarmed threads relies on per-connection in-memory tracking.
  • The catalog notification path can turn thread/started into a persisted directory entry without requiring message preview or a rollout.
  • Display-title fallback is name → preview → cwd → threadId, consistent with path-titled entries.
  • The inspected remote-control reconciliation path does not mark unseen entries missing in the same way as the local/ChatGPT-host paths.

Unconfirmed hypothesis: a Windows-created preparatory thread notification reaches the Mac, whose connection lacks the originating client's prewarm tracking, so it is cataloged as a regular chat. If that ID is later abandoned/replaced or has no recoverable backing thread, incomplete remote absence reconciliation leaves a persistent ghost. The Windows installation code and the two original creation-time notifications were not captured, so this is an investigation lead, not a confirmed root cause.

Recovery already performed: after consistent SQLite backups, the two confirmed stale Mac catalog entries were removed with exact host/thread scoping and the necessary catalog bookkeeping. Eight normal remote catalog entries were retained; integrity checks passed; remote/project configuration was unchanged. The user confirmed that both ghost entries disappeared. This was recovery of existing stale references, not a prevention fix. No application binary, signature, startup logic, or remote configuration was modified.

Potentially related, but not identical:

  • #42628: local/cloud unified catalog retains missing source entries (closed).
  • #53209: local Mac ghost chats and an unconfirmed prewarm hypothesis.
  • #52410: stale catalog/routing with SSH and duplicate host copies.

This report concerns Windows project creation → a separate Mac remote-control catalog, rather than local-only creation or SSH routing.

Privacy: this report is text-only. No chat transcripts, normal conversation content, project files, raw logs, databases, screenshots, actual project paths, host identifiers, thread IDs or credentials are attached or included.

yclovejy avatar Nov 11 '26 14:11 yclovejy

Additional macOS-to-macOS Remote Control evidence on desktop 26.1106.51428 (build 26605). This matches the path-titled ghost-entry symptom and missing backing state in this issue. A shared implementation defect remains unconfirmed. The report below adds three correlated creation/idle-teardown timelines and successful native reads of the separate real conversations.

Title: Remote sidebar exposes unused prewarmed thread IDs, then fails to resume them after idle teardown

Environment

  • macOS 27.2.1.
  • Controller and target desktop application: 26.1106.51428 (build 26605).
  • Bundled Codex: 0.167.0-alpha.4.1.
  • Two Macs using the supported desktop Remote Control connection.
  • A matching earlier occurrence used target desktop version 26.1103.60933.

Observed behavior The controller sidebar displays entries named after the working directory rather than a generated chat title. Opening one reports: Failed to resume chat / no rollout found for thread id. These entries appear alongside the real, titled chats, which remain readable.

Correlated evidence (UTC; identifiers replaced by labels)

  1. 2026-11-09: G1 starts at 22:15:59 and shuts down at 22:26:58 without an active turn. A real chat R1 starts at 22:17:11 and remains readable through the native thread reader.
  2. 2026-11-12: G2 starts at 18:05:55. The actual chat R2 is separately created at 18:06:15; the desktop logs usedPrewarmedThread=false, then successfully starts its first user turn and sets its name. G2 shuts down at 18:16:55 with had_active_turn=false and parent_turn_id=None. The next morning the controller still tries thread/resume for G2 and receives no rollout found. R2 remains readable.
  3. 2026-11-13: G3 starts at 08:09:49; the real chat R3 starts at 08:10:07 with usedPrewarmedThread=false. G3 shuts down at 08:20:59 without an active turn. At 10:48 the controller attempts to resolve G3's rollout and fails because the file does not exist. R3 remains readable.

Read-only checks

  • G1, G2 and G3 have no row in the target threads table, no projected turns, no projected items, and no transcript file (plain or compressed).
  • Native read_thread succeeds for R1, R2 and R3, returning completed turns and their items.
  • The desktop bundle has a prewarmConversation path invoking prewarmThreadStart, which sends thread/start. Discarded warm sessions and real user-submitted sessions are separate identities in the correlated logs.
  • The screenshot ID is absent from both Macs' saved sidebar global-state snapshots, suggesting that its stale visibility is in runtime discovery/cache state. The exact leaking notification or cache transition has not been isolated.
  • Supported archive cannot clean up an already non-existent thread; it returns no readable match.

Diagnosis The evidence strongly identifies unused prewarmed sessions leaking into the Remote Control sidebar, surviving teardown as clickable entries even though they never acquired a durable rollout. It does not show deletion or renaming of the corresponding real conversations. The precise notification/cache owner responsible for retaining the unused ID remains to be confirmed by OpenAI.

Requested correction At the existing prewarm/discovery owner, prevent unused warm sessions from becoming ordinary sidebar chats, and remove any advertised warm identity on discard or teardown. Preserve the real chat identity and history. Do not manufacture empty rollout files or add resume fallbacks.

Suggested regression With a Remote Control client attached, start preparing a new chat, cause a fresh thread to be used instead of the prepared thread, and let the unused thread expire. The unused ID should never become a durable-looking sidebar item and should not survive discard. The real chat should retain its title, completed user turn, and ability to reopen.

Limits This is a correlation of three natural occurrences plus read-only storage and bundle inspection, not a new controlled UI reproduction. No app databases, transcripts, configuration, enrollment or vendor source were edited. No complete logs, chat contents, account identifiers, hostnames, local paths, credentials or original thread IDs are included here.

Mark-RE-Johnson avatar Nov 13 '26 11:11 Mark-RE-Johnson

Reproduced with a Mac mini as the host and a second Mac as the controller over built-in Remote Control. Both desktop apps were on the production release 26.1111.21308 (build 27194).

  • Starting a project chat with the native New Chat button on the mini produced one chat with a user message. The controller’s Priority view also displayed entries titled with the working directory.
  • In one occurrence, the mini created two provisional sessions before the first message went to a separate chat. Both provisional sessions exited without an active task. After both exits, the controller continued to request them and received thread not loaded. The real chat remained readable.
  • A read-only check of the controller’s local thread catalog matched both extra entries to those exited sessions. Each had a display title equal to its working directory and missing_candidate=0. Archiving each by its exact ID returned “No Codex thread found”; both catalog entries remained afterward.
  • This also occurred with no model-settings save in the two minutes before or after submission. Changing the model before sending does not appear to be a prerequisite.

One clue for maintainers: in this build, the controller’s connection initialization accepts thread/started and includes thread/closed in optOutNotificationMethods. We could not establish whether another reconciliation mechanism is expected to remove abandoned provisional entries.

A regression check would be to keep Priority open on the controller while typing and submitting on the mini, then reconnect the controller. Only the chat that received the message should remain visible throughout reconnection.

493429944-svg avatar Nov 18 '26 13:11 493429944-svg

Related mechanism, possibly the missing piece for "whether the extra entry first appears before or after the first message is sent": on macOS 26.1111.21308 we measured that opening a new chat already issues thread/start, and the first send issues a second thread/start and runs the turn there (277–330 ms after creation). The first thread stays at 0 turns and is absent from thread/list — i.e. it appears before the first message, but only the second one carries it.

If remote-control mirrors loaded threads, that leftover is a path/cwd-titled ghost with no backing conversation, exactly as described here. Evidence and reproduction branches: #62541.

WGooold avatar Nov 19 '26 15:11 WGooold

I’m seeing a similar symptom with Mac-to-Mac Remote Control. Under a single project in the sidebar, several entries are labeled with the same working-directory path and appear alongside normally titled chats. When I click one of the path-only entries on the controlling Mac, I get “Chat unavailable on this computer” and “Try opening this chat on the original computer.” I haven’t verified whether those entries can be opened on the host Mac.

JUO-CHOI avatar Nov 21 '26 00:11 JUO-CHOI

I’m also affected by path-titled ghost chats when browsing conversations on a remotely connected Codex host. Extra entries appear with Windows working-directory names such as D:\dev\project\... instead of chat titles. Clicking one results in an unavailable-chat / failed-to-resume error rather than opening a real conversation. This has been a persistent usability problem across updates. Please prevent provisional/nonexistent threads from surfacing as ordinary chats in the remote sidebar, and provide a safe way to clean up stale entries without touching valid conversations or projects. I would also appreciate an update on whether a fix is planned.

dokim-nglife avatar Nov 23 '26 00:11 dokim-nglife

Follow-up to the earlier Mac-to-Mac report. Both Macs are running the production desktop app 26.1117.41037 (29803). The Mac hosting the work shows the invalid entries in its own sidebar. This also affects the project view.

On 23 November, seven folder-named entries corresponded to seven session-start requests. In each case the request ID in the controlling Mac’s client log matched the start on the host. Each unused session shut down with no active turn. In one case the host started the unused session at 13:46:09 UTC and retired it at 13:57:21. The user’s actual chat started under a separate ID at 13:47:01. The controller recorded usedPrewarmedThread=false. At 15:38 and 15:39 the host tried to reopen the unused ID and reported that its rollout file did not exist. The actual chat still opens with its completed work.

The host’s desktop local_thread_catalog contained 28 such rows. All 28 had the working directory as their title and missing_candidate=0. Across those IDs there were zero thread-index rows, saved transcript files, projected turns or projected items. Five nearby named chats all returned completed activity through the native reader.

Inspection of this build found that the desktop catalogue observes thread/started before a first user turn. It can use the working directory as the display title. Unpublished prewarms are tracked per connection. The catalogue handles archive/delete events, but an idle close does not retract the entry and an ordinary incremental refresh leaves it visible. The logs establish the cross-client start and the stale catalogue row. They do not record the precise notification that first admitted each ID.

A regression test should use two clients on one host. Prepare a chat from one client, submit the first turn on a different ID, and let the unused session retire. On both clients the unused ID should stay out of the sidebar before and after refresh, and the submitted chat should reopen with its history. An upgrade should reconcile existing catalogue-only entries against durable history.

Mark-RE-Johnson avatar Nov 23 '26 18:11 Mark-RE-Johnson