[macOS][regression] Desktop cannot resume Remote Control / CLI thread: `already has an active writer` after latest update
Summary
After updating the ChatGPT Desktop client on macOS on August 7, 2026, an existing workflow that previously worked stopped working:
- During off-hours, I use ChatGPT mobile Remote Control to continue a Codex CLI thread on my Mac.
- During the day, I open the same thread in the Desktop client and continue from there.
After the latest Desktop update, the Desktop/CLI handoff fails because the thread is reported as already having an active writer.
This appears to be a regression in thread ownership / writer handoff between the Desktop-bundled app-server/runtime and the CLI/Remote Control runtime.
Environment
- Platform: macOS (iMac)
- Standalone CLI:
codex-cli 0.147.0 - ChatGPT Desktop bundled Codex runtime:
/Applications/ChatGPT.app/Contents/Resources/codex --version codex-cli 0.147.0-alpha.6.5 - The issue started immediately after installing the latest ChatGPT Desktop update on August 7, 2026.
- The same Remote Control / CLI / Desktop workflow worked before that update.
Steps to reproduce
- Keep Codex Remote Control enabled on the Mac.
- Use ChatGPT mobile Remote Control to open/continue a Codex CLI thread.
- Later, on the same Mac, try to resume/open that same thread from the Desktop client.
- Observe that the thread cannot be resumed because another writer is considered active.
Actual behavior
The resume attempt fails with an error like:
Failed to resume session from ~/.codex/sessions/YYYY/MM/DD/rollout-...jsonl:
thread/resume failed during TUI bootstrap:
thread/resume failed: thread <redacted-thread-id> already has an active writer (code -32600)
A key observation:
- With the Desktop client running, the thread hits the
already has an active writerconflict. - If I fully quit the Desktop client, the same session can immediately be opened/resumed normally from the standalone CLI.
The session JSONL itself therefore appears intact; the problem looks like writer ownership/lifecycle rather than session corruption.
Expected behavior
Remote Control is intended to let the same work continue across mobile and desktop usage. A thread used through Remote Control / CLI should be able to hand off cleanly to Desktop when the user returns to the Mac.
Expected flow:
Mobile Remote Control / CLI thread
↓
user stops actively using mobile
↓
Desktop resumes the same thread
↓
ownership/writer handoff succeeds
The user should not need to disable Remote Control, kill app-server processes, fork the conversation, or create a new thread just to switch between mobile and Desktop.
Impact
This breaks a core daily workflow:
- Desktop during work hours
- Mobile Remote Control after work
- Same Codex thread/context across both surfaces
Because Remote Control needs to remain enabled, simply turning it off is not a practical workaround.
Regression evidence
The behavior changed immediately after the latest Desktop update. No CLI configuration or session files were changed at the time.
The standalone CLI and Desktop-bundled runtime are different builds:
Standalone: 0.147.0
Desktop bundled: 0.147.0-alpha.6.5
This may be related to stricter single-writer enforcement without a corresponding Desktop ↔ Remote Control ownership handoff.
Privacy note
The local username, exact session path, thread ID, repository/project names, and conversation contents are intentionally omitted. I can provide additional sanitized diagnostics if maintainers request them.
Reproduced on Windows 11 with the same versions (Desktop bundled codex-cli 0.147.0-alpha.6.5), and it does not require Remote Control — merely viewing a thread in the Desktop app takes its writer and never releases it:
Open thread X in the Desktop app → codex exec resume X "hi" → thread-store conflict: thread X already has an active writer Switch to a different thread in the app (X no longer displayed) → still conflict (waiting several minutes doesn't help) Close the app window, tray process still running → still conflict Fully quit the app (tray → exit) → exec resume X succeeds immediately So the writer appears to be held per-opened-thread for the lifetime of the app process, rather than released on navigation away. Same conclusion as OP: ownership/lifecycle issue, session file intact.
Impact on Windows is worse than macOS: there is no attach alternative — codex app-server daemon start / codex remote-control start both fail with codex app-server daemon lifecycle is only supported on Unix platforms, and the Desktop app exposes no control socket (default ~/.codex/app-server-control/app-server-control.sock absent), so external automation (exec/SDK resumeThread) has no way to share the app's writer and must fully restart the app between turns.
The reproduction suggests the missing primitive is not just "release the writer sooner"; it is an explicit, inspectable writer lease with fencing semantics.
If thread ownership is represented only by "some runtime has an active writer", handoff bugs are hard to distinguish from stale ownership. I would persist something like:
thread_id
lease_id
owner_runtime_id
owner_surface = desktop | cli | remote
acquired_at
last_heartbeat_at
lease_epoch
state = active | releasing | released | expired
release_reason
Then handoff can be a compare-and-swap operation rather than implicit process lifetime:
- Desktop owns epoch N.
- Remote/CLI requests handoff.
- Desktop quiesces writes and records its final durable cursor/turn.
- Lease N is released.
- New owner acquires epoch N+1.
- Any late write carrying epoch N is rejected as stale.
The lease_epoch/fencing token matters. A timeout alone can otherwise create the opposite failure: Desktop looks dead, CLI takes ownership, then the old writer wakes and both believe they own the thread.
For UX/debugging, the conflict should expose who owns the lease and whether it is live: held by Desktop pid/runtime X, heartbeat 1.2s ago, versus stale lease last seen 12m ago. That makes "fully quit Desktop" a diagnosable lease-lifecycle bug rather than the only recovery mechanism.
This is adjacent to the operational-state model I have been building in https://github.com/leadingproblemsolver/living-context-engine: durable state is useful only when ownership/status claims retain provenance and can be reconciled against current reality. LCE itself does not implement writer leasing, but the same principle applies here: make the ownership claim a first-class record with evidence and lifecycle, not an implicit inference from an open process/thread.
Same issue on Fedora 43. If vs code with codex extension is running, codex resume in cli will exit with this error even if the chat is not ongoing in vs code, even if the codex pane in vs code is hidden. It only works when I fully close vs code. This is a bad regression, I keep an eye on token usage through the codex cli app because the vs code extension /status command is useless, it does not tell me anything besides session ID. I need to query /status in codex cli from time to time to keep track of token consumption. I cannot exit vs code each time I need to check that.
This error is happening to me too. Codex resume is basically useless now.
I'm seeing what appears to be the same underlying writer-ownership regression, but in a slightly different and very reproducible Remote Control scenario on macOS.
Impact / severity
For my workflow, this currently makes Remote Control effectively unusable.
The primary reason I use Remote Control is to leave active Codex CLI threads running on my development machine and then monitor or steer those same live threads from my iPhone when I'm away from the computer.
At the moment, Remote Control only works for threads that are not open in the CLI. As soon as a thread is actually active in the CLI — i.e. exactly the thread I would want to control remotely — the mobile client can no longer load it.
So while the Remote Control server itself is reachable and inactive threads work, the core live-session use case is completely blocked.
Scenario
I start Codex normally in the CLI and then expose the machine to Remote Control, either by:
- Opening the ChatGPT/Codex desktop app with remote control enabled, or
- Running:
codex features enable remote_control
codex remote-control
I can then see my local Codex threads from the ChatGPT iPhone app.
Behavior
Threads that exist locally but are not currently open in a Codex CLI process work correctly from the iPhone app. I can open them, see their messages, and interact with them.
However, any thread that is currently open/running in the CLI fails when opened from the iPhone app.
The iPhone shows:
Error loading messages: Codex server returned an error.
At the same time, the codex remote-control process logs:
ERROR codex_core::session::session: failed to initialize thread persistence:
thread-store conflict: thread <thread-id> already has an active writer
ERROR codex_core::session: Failed to create session:
thread-store conflict: thread <thread-id> already has an active writer
This is deterministic:
- Thread not open in CLI → works remotely.
- Open the thread in CLI → remote/mobile access fails with
already has an active writer. - Exit that CLI thread → it becomes remotely accessible again.
Expected behavior
Remote Control should be able to attach to / proxy the existing live CLI session rather than attempting to become a second persistent writer.
The main use case for Remote Control is leaving an active CLI Codex session running on the development machine and then viewing or steering that same live session from another device.
Requiring the CLI session to be closed before Remote Control can access it defeats that workflow entirely. In practice, this means Remote Control is currently unusable for controlling active CLI work, even though inactive threads remain accessible.
This occurs regardless of whether Remote Control is started through the desktop app or directly with codex remote-control.
I reproduced the same regression in a Desktop-over-SSH workflow on macOS and captured the lock ownership and recovery path.
Environment
- Local Desktop build:
26.803.61601 - Remote macOS host
- Remote Desktop bundled runtime observed:
0.147.0-alpha.6.5 - Managed standalone app-server after recovery:
0.147.0 - Thread size: approximately 47 MB
Reproduction
- A thread on the remote Mac had already completed its latest turn.
- The remote ChatGPT Desktop app remained running with that thread previously opened.
- Opening the same remote thread from another Mac through its saved SSH host produced:
thread <redacted> already has an active writer - A read-only
thread/readrequest succeeded, but the automaticthread/resumeperformed by Desktop failed with JSON-RPC-32600.
Lock evidence
On the remote host, lsof showed the Desktop-bundled codex app-server child holding both:
- the thread's rollout JSONL; and
~/.codex/thread-writer-locks/<thread-id>.lock.
Killing only that child was not sufficient: the parent ChatGPT process immediately respawned it and the new child reacquired the same writer lock. Navigating away from the thread also did not release ownership.
Fully quitting the remote ChatGPT Desktop process released the lock. A managed standalone app-server then resumed the thread successfully from the SSH client. The local Desktop log showed:
thread/resume errorCode=null
maybe_resume_success
resumeState=resumed
streamRole=owner
The first successful resume took about 70 seconds because the rollout was large, but the session data was intact.
Conclusion / workaround
This confirms a writer-lifecycle/handoff problem rather than session corruption or an SSH transport failure. The current reliable workaround is to fully quit the Desktop process that owns the thread, then resume through the other client.
Because thread/read still works while another writer owns the thread, Desktop could also provide a visible Open read-only fallback instead of automatically attempting thread/resume and failing.
Adding a maintainer oriented framing: the single writer invariant itself makes sense. The rollout JSONL is canonical and the SQLite thread history is derived from it, so two independent writers could corrupt ordering, compaction, or projection state.
The missing primitive is a usable ownership lifecycle. When a local runtime already owns a thread, a second surface should:
- attach to or forward controls to the existing local writer when that owner is reachable;
- otherwise offer an explicit read-only transcript view instead of automatically attempting resume;
- show actionable owner information in conflicts: surface, runtime, PID or endpoint where appropriate, acquisition time, and whether a handoff is possible;
- support an explicit quiesced handoff: flush the current writer, release its lease, then allow the new surface to acquire it.
That preserves the safety property while avoiding the current requirement to fully quit Desktop or another host process just to inspect or continue the same thread.
A global history.persistence = none setting would not address this error and would trade away the resume/fork/rollback benefits of durable thread history.
The useful control here is writer ownership and handoff.
Specs:
Ubuntu 24.04.3 LTS
Linux 6.17.0-35-generic, x86_64
24 CPU cores, 54 GiB RAM
Standalone Codex CLI: 0.147.0
Node.js: v24.8.0
I can reproduce the same issue on Linux.
Environment:
- Ubuntu 24.04.3 LTS
- Codex CLI/app-server: 0.147.0
- Remote Control enabled
- ChatGPT mobile app on Android
Behavior:
- Projects and session lists load correctly.
- Completed/inactive sessions load their conversations.
- Active/running sessions appear in the list, but opening them on mobile fails with:
Error loading messages: Codex server returned an error. - After the CLI releases the active session, the conversation becomes accessible remotely.
The host app-server log repeatedly reports:
failed to initialize thread persistence: thread-store conflict: thread [REDACTED] already has an active writer
Failed to create session: thread-store conflict: thread [REDACTED] already has an active writer
The affected rollout file exists and contains valid JSONL. This appears to be a writer-ownership or handoff problem where Remote Control tries to create a second writer instead of attaching to the already-running CLI session.
I don't know if this is the same error i had earlier but when i got this, i basically went to the .codex directory and deleted the lock file associated with chat i wanted to resume. never had this issue until last week.
This was on the VS Code Server Extension on a remote Linux machine
ls ~/.codex archived_sessions config.toml history.jsonl logs_2.sqlite memories_1.sqlite session_index.jsonl thread-writer-locks attachments config.toml.backup-20260729-180008 installation_id logs_2.sqlite-shm models_cache.json sessions tmp auth.json db-backup-20260727 ipc logs_2.sqlite-wal plugins shell_snapshots version.json cache goals_1.sqlite log memories rules skills
ls ~/.codex/thread-writer-locks/ 019ef4ae-30da-7ac0-9a2f-f421eb61610c.lock 019ff2cd-fe3d-7443-896f-31a87daf5f2e.lock
I don't know if this is the same error i had earlier but when i got this, i basically went to the .codex directory and deleted the lock file associated with chat i wanted to resume. never had this issue until last week.
This was on the VS Code Server Extension on a remote Linux machine
ls ~/.codex archived_sessions config.toml history.jsonl logs_2.sqlite memories_1.sqlite session_index.jsonl thread-writer-locks attachments config.toml.backup-20260729-180008 installation_id logs_2.sqlite-shm models_cache.json sessions tmp auth.json db-backup-20260727 ipc logs_2.sqlite-wal plugins shell_snapshots version.json cache goals_1.sqlite log memories rules skills
ls ~/.codex/thread-writer-locks/ 019ef4ae-30da-7ac0-9a2f-f421eb61610c.lock 019ff2cd-fe3d-7443-896f-31a87daf5f2e.lock
I tested the lock-file workaround mentioned above.
Deleting the corresponding file from:
~/.codex/thread-writer-locks/
does make the thread accessible through Remote Control again.
However, this does not solve the underlying issue. It simply changes which process owns the thread.
After deleting the lock and opening the thread remotely:
- Remote Control / iPhone can access and interact with the thread again.
- Trying to open that same thread in the CLI then fails with the same
already has an active writererror, this time on the CLI side.
So the behavior appears to be:
- CLI owns thread → Remote Control cannot access it.
- Delete lock / Remote Control takes ownership → CLI cannot access it.
- Close whichever process currently owns the thread → the other side can access it.
This means the lock-file deletion is only a workaround for handing the thread over from one client to another. It does not allow the intended Remote Control workflow of keeping a CLI thread running while viewing/steering that same live thread from the app.
That distinction is important for severity: for anyone using Remote Control specifically to control active CLI sessions while away from their machine, the feature is currently effectively unusable.
It also suggests this isn't simply a stale-lock cleanup issue. The current single-writer behavior seems fundamentally incompatible with simultaneous CLI + Remote Control access to the same thread, unless Remote Control is intended to attach/proxy the existing writer rather than create another one.
I’m honestly surprised this isn’t one of the highest-priority Codex issues right now and that it has remained broken for several days. Remote Control is effectively unusable across the board for what I’d consider its most important use case: keeping an active CLI session running and then viewing or steering that same thread remotely from another device.
I can reproduce a related version of this issue on Linux with Codex CLI 0.147.0.
My setup:
- Linux
- Codex CLI 0.147.0
codex remote-controlrunning as a long-lived app-server under a systemd user service- ChatGPT mobile connected to that Remote Control host
thread/resume failed: thread <id> already has an active writer (code -32600)
As a temporary workaround, I connected the CLI TUI to the same app-server process already used by Remote Control, instead of starting a second app-server:
codex --remote "unix:///tmp/codex-rc-XXXXXX/rc.sock"
Resuming can also be done through that shared endpoint:
codex --remote "unix:///tmp/codex-rc-XXXXXX/rc.sock" resume
The socket path is generated dynamically by foreground codex remote-control, so I use a small wrapper to discover the live socket owned by the systemd service before launching the CLI.
With both ChatGPT mobile and the CLI connected to the same app-server process, I no longer encounter the cross-process active writer conflict in this workflow.
This suggests that the conflict is between separate app-server owners rather than between multiple UI clients connected to one app-server. It is only a workaround: a supported shared endpoint or explicit writer handoff between Remote Control, Desktop, and CLI would still be preferable.
I can reproduce the same writer-ownership/handoff failure on macOS with Zed's Codex ACP integration as the existing owner and a standalone codex remote-control process as the second surface.
Environment
-
macOS, Apple Silicon
-
Standalone CLI:
codex-cli 0.147.0 -
Zed integration runtime:
codex-cli 0.147.0 -
Zed launches Codex through this process chain:
Zed -> npm exec @agentclientprotocol/codex-acp -> codex-acp -> codex app-server
The affected rollout metadata identifies the threads as:
source=vscode
originator=zed
cli_version=0.147.0
Reproduction
-
Start Zed with the Codex ACP integration enabled.
-
Open or resume several Codex threads in Zed.
-
Leave Zed running. At least one affected thread had already emitted
task_complete; two others were still usable from Zed. -
Start a separate foreground Remote Control process:
codex remote-control -
When Remote Control attempts to initialize those existing Zed-owned threads, it repeatedly logs:
ERROR codex_core::session::session: failed to initialize thread persistence: thread-store conflict: thread <redacted> already has an active writer ERROR codex_core::session: Failed to create session: thread-store conflict: thread <redacted> already has an active writer
Lock-owner evidence
lsof showed that all three affected thread locks were held by the same long-lived Zed child app-server process:
codex <zed-app-server-pid> ... ~/.codex/thread-writer-locks/<thread-a>.lock
codex <zed-app-server-pid> ... ~/.codex/thread-writer-locks/<thread-b>.lock
codex <zed-app-server-pid> ... ~/.codex/thread-writer-locks/<thread-c>.lock
The same process also had the corresponding rollout JSONL files open. Two rollout files continued receiving events from Zed after the Remote Control errors, confirming that these were real live owners rather than orphaned lock files.
The third thread had completed its last turn the previous day but its writer was still retained by the Zed app-server. This app-server had remained alive since Zed was started roughly two days earlier.
The timing also lines up with the second-owner attempt: codex remote-control started first, and the first active writer error appeared about 37 seconds later while the Zed app-server was still holding the locks.
Interpretation
This extends the issue beyond Desktop/CLI handoff: a third-party IDE surface using codex-acp -> codex app-server exhibits the same behavior.
The single-writer guard is working, but Remote Control starts another app-server owner and attempts to initialize persistence for threads already owned by Zed. There is no automatic attach/proxy path to the existing Zed app-server, and Zed's app-server also retains writers for previously opened/completed threads for its full process lifetime.
Expected behavior would be for Remote Control to attach/proxy to the reachable existing owner, or perform an explicit quiesced handoff, rather than attempting to become a second persistence writer. Deleting the .lock files is not a safe fix because the original process is still alive and actively owns the rollout files.
Face the same issue when i leave the codex cli without active turns, and in my developping apps I got notfication and attach to the thread(not resuming just review, via websocket over the app's in app tailscale connectivity to the codex app server i launched) and i got the same error
seems introduced after host codex cli updated to 0.147
Adding a data point: msstore Desktop over its built-in SSH connection to remote, with a negative control that makes the scope fairly clear.
Setup
- Local:
msstoreCodex Desktop- Connects to remote via "SSH connection" provided in Codex Desktop
- This function demands that remote machine runs a
codex-clion ash
- This function demands that remote machine runs a
- Connects to remote via "SSH connection" provided in Codex Desktop
- Remote: also
msstoreCodex Desktop;- its user works only in
msstorecodex and never actually works incodex-cli- remote
msstoredesktop and cli use sameCODEX_HOME
- remote
- its user works only in
Regression
Before the recent update, I could read (and even write; I took care to avoid write race conditions; I agree that single-write model is the right way) remote session thread from my Codex desktop, with remote Codex desktop up and running. This is a part of my cooperation workflow as remote user didn't have to send lengthy responses by his Codex via other tools; I could just read them myself without asking him for redundant operations.
Now the same workflow is blocked.
Reproduction / negative control
-
Remote Codex Desktop runs with thread A open/owned there.
-
Via the SSH connection, other remote threads (B, C, etc.) can still be opened by my Codex Desktop immediately while remote Codex Desktop remains running.
-
I attempt to open the exact same remote thread A in my Codex Desktop.
-
It is now rejected with the localized UI message:
此任务正在其他位置运行。 请先在那里关闭会话,然后在此处重试。i.e. “This task is active elsewhere. Close it there and try again here.”
So this is not a global Desktop/CLI, account, or CODEX_HOME exclusivity problem. The conflict is specifically per-thread.
Why this matters
The secondary SSH client does not need to become a second writer. A read-only/spectator access to the live thread while Desktop remains the sole writer can still be useful.
The new single-writer invariant makes sense for persistence safety, but the current client behavior appears to route “open this thread” through thread/resume, which blocks even observation when another app-server already owns the writer.
A visible Open read-only / spectator fallback (or attaching the secondary client to the existing writer-owning app-server) would preserve the single-writer invariant while restoring the pre-update monitoring workflow.
This also gives a simple A/B control on the same running Desktop process:
Desktop(thread A) + SSH CLI(thread B) -> works
Desktop(thread A) + SSH CLI(thread A) -> active-writer rejection
Resolving the issue by downgrading the Codex CLI npm install -g @openai/[email protected] It works on my mac, Codex Desktop version 26.803.81509
Reproduced on Fedora 44 with CLI 0.147.0, ChatGPT Desktop 26.803.81509 (bundled Codex 0.147.0-alpha.6.6), and iOS 1.2026.209.
Deterministic behavior:
- Active CLI thread → iOS reports “Error loading messages.”
- Exit CLI → the same thread loads immediately.
- Active GUI-created thread → iOS works normally.
Host logs show iOS thread/resume failing with:
thread-store conflict: thread <id> already has an active writer
This confirms a cross-process CLI/Remote writer-handoff problem, not session corruption or Linux-specific behavior.
Independent reproduction with process-level evidence on macOS. This matches the Remote/CLI case described above and also reproduces the reverse ownership direction.
Environment
- macOS 15.7.7 (24G720), arm64
- Standalone npm CLI:
codex-cli 0.147.0 - ChatGPT Desktop:
26.803.61601 - Desktop-bundled Codex:
0.147.0-alpha.6.5 - VS Code extension-bundled Codex:
0.147.0-alpha.6.5 - iOS Remote client identified in host logs:
1.2026.209
Live CLI -> iOS Remote failure
- Resume a local thread in a normal VS Code terminal using the standalone CLI.
- Keep the CLI process and thread running.
- Open the same thread from ChatGPT iOS Remote through the connected Desktop host.
The Desktop Remote transport was healthy: the host app-server websocket reached Connected, and the current Remote enrollment was enabled. Nevertheless, opening the live thread from iOS produced two deterministic thread/resume failures:
rpc.method="thread/resume"
app_server.client_name="codex_chatgpt_ios_remote"
app_server.client_version="1.2026.209"
Failed to create session:
thread-store conflict: thread <redacted> already has an active writer
lsof showed that ~/.codex/thread-writer-locks/<redacted>.lock was open by the healthy standalone codex resume process. The CLI continued functioning normally, so this was a real live owner, not an orphaned marker or stale process.
The iOS UI surfaced the failure as “This task couldn’t reconnect” / an error loading messages.
Reverse direction
The reverse case also reproduces:
- Open a previously idle local thread from iOS Remote.
- The Desktop-bundled app-server acquires that thread's writer lock.
- A subsequent standalone
codex resumefor the same thread fails withalready has an active writer. - Fully quitting Desktop releases the ownership and the CLI resume immediately succeeds.
The Desktop frontend also logged Conversation state not found for the remotely opened thread shortly after the Desktop app-server acquired its lock, suggesting a secondary UI/app-server state synchronization problem.
Pairing negative control
There had previously been a separate broken Remote enrollment returning HTTP 404 Remote environment not found. Removing/re-pairing the connection created a new enrollment and restored a connected Remote websocket. The writer conflict still reproduced after that successful re-pair, so it is not caused by stale QR pairing, authentication, or host reachability.
Interpretation
This appears to be the 0.147 single-writer invariant working as intended at the storage layer, while the Remote open/resume path is not writer-aware. iOS Remote attempts to initialize a second persistent session instead of attaching/proxying to the existing live owner (or falling back to a read-only spectator view).
No lock files were deleted and no running process was stopped during diagnosis. Deleting the pathname while the original process holds the open inode would be unsafe because it could permit a second lock inode and concurrent writers.
Independent reproduction on macOS using CLI-only Remote Control. The ChatGPT desktop app is not used in this workflow, so this variant does not involve a Desktop-owned writer.
Environment
- macOS 26.5.2 (25F84), arm64
- Codex CLI and Remote daemon:
0.147.0 - Host started with
codex remote-control start - Client: ChatGPT Remote on Android
Deterministic behavior
- Start or resume a thread in a normal Codex terminal TUI and leave it open.
- Open the same thread from Android Remote.
- Remote fails to load/connect to that thread.
- Exit the local TUI cleanly.
- The same thread can then be opened through Remote.
- Threads created through Remote, or existing threads not open in a TUI, work normally.
The Remote websocket is connected and the project/thread list is available, ruling out host reachability, authentication, and pairing failures.
The CLI daemon logs show that Android Remote sends thread/resume through the daemon Unix socket, after which the daemon tries to initialize a second persistent session:
app_server.client_name="codex_chatgpt_android_remote"
rpc.method="thread/resume"
failed to initialize thread persistence:
thread-store conflict: thread <redacted> already has an active writer
Failed to create session:
thread-store conflict: thread <redacted> already has an active writer
The existing writer is the healthy, still-running terminal TUI, not an orphaned lock. This therefore appears to be the same missing attach/proxy or explicit handoff path described above, but specifically between two standalone CLI 0.147.0 processes: the TUI and codex remote-control daemon. No lock files were deleted during diagnosis.
Reproduced on Linux with the VS Code extension → ChatGPT Desktop Remote → iPhone path.
Environment
- Pop!_OS 24.04, x86_64
- ChatGPT Desktop package:
26.810.52044 - VS Code Codex client reports:
26.810.52044 - iOS Remote client reports:
1.2026.209
Behavior
Remote pairing and transport are healthy: the Desktop host refreshes its Remote token and reaches a connected Remote websocket. The iPhone can list the local VS Code threads, but opening a thread that is currently owned by the VS Code Codex client fails before any messages are displayed.
The iPhone UI reports:
Error loading messages: The Codex server returned an error.
This task couldn't reconnect.
At the same time, the Desktop host logs show the iOS client attempting thread/resume:
rpc.method="thread/resume"
app_server.client_name="codex_chatgpt_ios_remote"
Failed to create session:
thread-store conflict: thread <redacted> already has an active writer
This repeated for two different VS Code-owned threads. Pairing, authentication, and host reachability therefore do not appear to be the cause.
Impact
This blocks even read-only monitoring. A user cannot view messages or follow the progress of an active VS Code Codex task from the phone, which is the primary Remote use case. The mobile client appears to request a new persistent writer through thread/resume instead of attaching/proxying to the existing VS Code-owned session or falling back to a spectator/read-only view.
Privacy
Thread IDs, account and installation IDs, computer/user names, project/repository names, local paths, conversation titles/content, screenshots, and complete logs are intentionally omitted.
Additional deterministic reproduction on macOS, specifically covering ChatGPT Desktop <-> VS Code in both directions and iOS Remote after the latest desktop update.
Environment
- macOS 26.2, Apple Silicon
- ChatGPT Desktop:
26.810.52044 - Desktop bundled Codex:
codex-cli 0.148.0-alpha.9 - VS Code Codex extension:
26.810.52044 - VS Code extension bundled Codex:
codex-cli 0.148.0-alpha.9 - Previous Desktop release observed earlier on the same day:
26.727.51351
Bidirectional reproduction
- Open or resume a thread in the VS Code Codex extension.
- Open the same thread in ChatGPT Desktop or through iOS Remote.
- Desktop fails
thread/resumewith JSON-RPC-32600andthread <redacted> already has an active writer; iOS shows the generic messageError loading messages: The Codex server returned an error. - Reverse the ownership: open the thread in ChatGPT Desktop first, then open it in VS Code.
- VS Code repeatedly reports that the thread is already open/running elsewhere and cannot display it.
This also happens for a thread whose latest turn is already completed: merely restoring/viewing the thread assigns the client streamRole=owner. Restarting the Mac does not help when both applications restore their previous windows and immediately reacquire ownership.
Regression correlation from local app logs
On the same machine and same day:
- Desktop
26.727.51351: 0 occurrences ofalready has an active writer - After relaunch/update to
26.810.52044: successive app sessions recorded 2, 22, and 34 occurrences
Remote transport itself was healthy: remoteControl/enable succeeded and the host connection reached state=connected. This rules out pairing, authentication, host reachability, and ordinary network failure.
Expected behavior
A second UI surface should attach/follow the reachable owner, provide a read-only transcript fallback, or perform an explicit handoff. Opening a completed or active thread in one supported client should not make it inaccessible from every other supported client, especially iOS Remote.
Privacy note: thread IDs, account/installation IDs, computer and user names, repository/project names, local paths, conversation content, screenshots, and full logs are intentionally omitted. Sanitized excerpts can be provided if maintainers need them.