Skip to content

Remote Windows task becomes conversation_inaccessible while host app-server remains alive #41775

Open

Description

@gwaterhouse

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

  • Coordinating Mac: ChatGPT/Codex app 26.825.51511 (bundle 7377)
  • Windows remote host: OpenAI.Codex 26.825.6671.0
  • Bundled Codex/app-server on both: 0.151.0-alpha.7.2

What subscription do you have?

Paid ChatGPT subscription; the exact tier is not exposed to this diagnostic task.

What platform is your computer?

  • macOS 27.0 (26A5421a)
  • Microsoft Windows NT 10.0.26220.0, x64 OS/x64 process

What issue are you seeing?

A Codex task running on a paired Windows host repeatedly becomes inaccessible from the coordinating Mac even though the Windows Codex process, local app-server, network, and host remain continuously available.

The Mac app log reports remote control app-server stream sequence gap detected (code 4000). The Windows log independently records the coordinating task becoming inaccessible:

2026-08-31T00:52:45.210Z thread not loaded: <redacted-id>
2026-08-31T00:52:45.711Z HTTP 404; errorCode=conversation_inaccessible; can_retry=false

The same thread not loaded / conversation_inaccessible pair recurred around 03:07 and 04:09 UTC. Mac-side stream gaps recurred around 01:07, 02:13, 02:45, 03:18, and 04:05 UTC.

The Windows package was Status Ok, and one Windows Codex process remained alive for the entire period. There were no matching Windows crash, renderer-failure, sleep/resume, network-loss, authentication, HTTP 429, WebSocket, or timeout events. The only actual app-server disconnect happened later during an intentional package update/restart.

This makes the failures appear to be a backend control-plane/task-routing or Remote stream-recovery problem rather than host availability.

What steps can reproduce the bug?

  1. Pair a Mac and Windows PC for Codex Remote under the same account/workspace.
  2. Start or continue a long-running Codex task on the Windows host from the Mac.
  3. Leave both apps running and both hosts awake and online.
  4. Continue coordinating the task over several hours.
  5. Intermittently, the Windows host/task becomes unavailable from the Mac. Retrying task/list/read operations may time out or return thread not loaded / conversation_inaccessible, even though the Windows process and app-server remain alive.
  6. Quitting and reopening the Windows app restores access.

This is intermittent but occurred five times in one continuous session.

What is the expected behavior?

Remote stream gaps should recover without making an otherwise live task inaccessible. If a stream cursor must be reset, the Mac should transparently reload the task from the live Windows app-server instead of returning a non-retryable conversation_inaccessible response.

Additional information

  • Both apps were current at the time of diagnosis.
  • The previous Windows package version was neither registered nor running; references to it existed only in stale stored workspace paths.
  • The evidence above is deliberately sanitized. Raw logs were reviewed locally and are not attached because they contain local paths and task identifiers.

Activity

  1. added
    bug
    app
    windows-os
    app-server
    connectivity
    on Aug 31, 2026
  2. filipinascimento commented on Sep 1, 2026

    @filipinascimento

    Cross-platform corroboration: I reproduced the same failure class with macOS Codex Desktop controlling another macOS Codex Desktop host through Remote Control.

    Environment

    • Controller: Codex App 26.825.51511 (bundle 7377)
    • Host: Codex App 26.825.51511
    • Bundled Codex/app-server: 0.151.0-alpha.7.2
    • Controller platform: Darwin 25.6.0 arm64 arm
    • Host: Apple Silicon Mac
    • Both devices used the same account/workspace and remained reachable.
    • Host name, task/turn/item IDs, project name, local paths, account identifiers, and request IDs are redacted.

    User-visible behavior

    One older, event-heavy remote task remains visible in the task list but cannot be used reliably from the controller. Other tasks on the same host remain readable. Opening the affected task can spend several seconds replaying history, show a stale streaming/Thinking state, reconnect, or intermittently fail to load.

    Sanitized controller-side evidence

    A fresh open of the affected task completed all transport requests successfully:

    thread/read       errorCode=null  ~0.27 s
    thread/resume     errorCode=null  ~0.43 s
    thread/turns/list errorCode=null  ~0.36 s
    thread/items/list errorCode=null  5 pages, ~1.06 / 0.81 / 2.03 / 2.73 / 2.03 s
    

    The renderer then reported:

    maybe_resume_success
    latestTurnStatus=inProgress
    markedStreaming=true
    turnCount=4
    

    At the same time, the supported task-read projection returned a conflicting state for the same task:

    thread status: idle
    turn count: 1
    sole/latest turn status: interrupted
    completedAt: null
    turn error: null
    returned history items: 200
    

    The returned 200-item history contained 103 reasoning items, 57 command executions, 33 file changes, 6 assistant messages, and 1 compaction.

    During reconnect recovery, the controller logged:

    remote control app-server stream became unknown
    connected -> error -> connecting -> connected
    

    Recovery replayed the task history and again reported latestTurnStatus=inProgress, markedStreaming=true, and turnCount=4.

    A few minutes later, two reads for the exact same task failed:

    errorCode=-32600
    thread not loaded: <redacted-task-id>
    

    Within the same second, duplicate/subsequent reads for that task succeeded with errorCode=null. This looks like a routing/projection race rather than the task or host being permanently unavailable.

    An earlier open, before the latest reconnect, showed the same stale-state boundary:

    thread/read and thread/resume succeeded
    renderer: latestTurnStatus=inProgress, markedStreaming=true
    supported task read: latest turn interrupted
    Item not found in turn state (same missing item repeated 3 times)
    121 reasoning-summary events replayed over ~22 minutes
    

    The missing item ID was not present in the 200 items returned by the supported task read.

    Interpretation

    This appears to combine two recovery defects:

    1. Remote reconnect can temporarily route task reads to an app-server/task projection where the thread is not loaded, while another request succeeds immediately.
    2. Renderer and supported task projections can disagree about both the number of turns and the latest turn lifecycle (4 + inProgress versus 1 + interrupted). Recovery then marks stale state as streaming and applies item events to an incomplete turn model.

    This overlaps the renderer/task-projection divergence in #24263 and the post-gap hydration behavior in #35727, but this reproduction adds current-build macOS-to-macOS evidence for the thread not loaded / Remote Control failure reported here.

    Expected behavior

    After reconnect or host-app restart, task routing and projection should reconcile before the task is presented as resumed. thread/read, renderer state, and supported task APIs should agree on the canonical latest turn. If reconciliation cannot be completed, the UI should show a recoverable projection error rather than an indefinitely streaming task.

    Raw logs contain private transcript data and identifiers and are therefore not attached publicly. A sanitized diagnostic bundle or exact timestamps/IDs can be provided through a secure maintainer channel.

  3. filipinascimento commented on Sep 3, 2026

    @filipinascimento

    Recurrence update (2026-09-03): the same macOS-to-macOS Remote Control failure is still reproducible after updating the coordinating app.

    Current controller

    • Codex App 26.901.20858 (bundle 7658)
    • Codex CLI/app-server 0.153.0-alpha.5
    • Host, task/turn/item IDs, account identifiers, request IDs, local paths, and transcript contents are redacted.

    New evidence

    • The remote host remains discoverable and task list/read calls succeed; the API reports no unavailable host/source.
    • In the current task list, 9 of 15 recent tasks on this host are projected as notLoaded.
    • The affected history-heavy task is listed as idle, while its supported read projection reports a latest turn of interrupted, completedAt=null, with at least 200 returned history items.
    • Same-host control tasks read in about 0.8-1.0 seconds. The affected task takes about 2.6 seconds even through a compact supported read.
    • Across six observed UI opens/resumes, thread/items/list made 34 paginated calls totaling 70.529 seconds. The slowest single page took 12.183 seconds. Each open replayed roughly 6-7 history pages.
    • Renderer resume state alternated between interrupted and inProgress while keeping markedStreaming=true. A subsequent turn/steer failed with -32600 / no active turn to steer, although the UI state indicated streaming.
    • After the host became available, the controller recorded five app-server stream resets in about 94 minutes: three SEQUENCE_GAP and two UNKNOWN_STREAM. Reconnect recovery then rehydrated the large task again, amplifying the visible delay.

    There is also a host-local confounder: a test harness had registered a second enabled Remote Control client against the same server/environment identity, and host logs recorded repeated 409 Remote app server already online ownership conflicts. This likely amplifies reconnect churn, but it does not explain the reachable task's internal lifecycle disagreement (markedStreaming=true while no active turn exists) or the repeated full-history replay. I have not claimed that local condition is repaired because remote repair turns are themselves currently stalling.

    Expected behavior

    After a stream gap or reconnect, the client should reconcile the canonical latest-turn state before presenting a task as resumed. History hydration should be incremental/cached or bounded, and stale overlapping page loads should be cancelled. A task must not remain marked streaming when the app-server reports no active turn.

    This recurrence appears to preserve the projection/hydration race reported above while adding a severe performance failure caused by repeated pagination after stream recovery. Raw logs remain private because they include user data and stable identifiers; I can provide exact timestamps and a sanitized bundle through a secure maintainer channel.

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

    appapp-serverbugconnectivityremotewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions