Skip to content

[Remote][Windows/Android] Remote Codex connection repeatedly disconnects during long-running sessions #39863

Open

Description

@youngbumkim80

What issue are you seeing?

Remote Codex connections are repeatedly disconnecting during long-running coding sessions, to the point that Remote is not reliable enough for sustained project work.

This is not an isolated one-time disconnect. The Remote connection repeatedly drops while the local Codex work on the host can otherwise continue, and reconnecting is unreliable or requires repeated attempts.

The issue is especially disruptive for large, long-running development tasks where continuity of the same Codex session matters.

Environment

  • ChatGPT plan: Pro
  • Host platform: Windows
  • Remote controller/client: ChatGPT Android app
  • Workload: large local software project with long-running Codex tasks
  • Local execution on the host can continue, while the Remote connection is the unstable part

Exact Codex/ChatGPT build numbers can be supplied if needed.

What steps can reproduce the bug?

  1. Start or continue a Codex task on a Windows host.
  2. Connect to that host through ChatGPT Remote from an Android device.
  3. Continue a long-running coding session with multiple turns and tool executions.
  4. Leave the task running or continue interacting remotely for an extended period.
  5. Observe that the Remote connection disconnects repeatedly.
  6. Attempt to reconnect and continue the same task.
  7. The connection may fail again, become unstable, or require repeated reconnection attempts even though the local host/session itself is still available.

The problem has occurred repeatedly rather than as a single transient network event.

What is the expected behavior?

Remote should maintain a stable connection for long-running Codex sessions and recover transparently from brief transport interruptions.

If the network momentarily changes or a WebSocket/transport connection drops:

  • the existing Codex task should remain intact;
  • Remote should automatically reconnect to the same host/session;
  • context and task state should not be lost;
  • the user should not need repeated manual reconnection attempts;
  • long-running development work should remain controllable from the Android client.

Actual behavior

  • Remote disconnects repeatedly during active or long-running work.
  • Reconnection is unreliable.
  • The local host can still be working while Remote becomes unavailable.
  • The instability interrupts development and makes Remote unsuitable for sustained Codex use.

Impact

Severity is high for users who rely on Remote for serious development workflows.

For large coding projects, repeated Remote disconnects can interrupt supervision of long-running tasks, force repeated recovery attempts, waste user time, and create uncertainty about whether a task is still running or whether state/context has been preserved.

Requested investigation

Please investigate the Remote connection lifecycle, including:

  • WebSocket / long-lived transport stability;
  • reconnect/backoff behavior;
  • Android-to-host Remote session recovery;
  • host/session identity preservation across reconnects;
  • whether an existing healthy local task is incorrectly treated as unavailable after a Remote transport failure;
  • whether Remote reconnect attempts can enter a stale or failed state instead of reattaching to the existing session.

It would also be very helpful to expose a user-visible diagnostic reason when Remote disconnects (transport failure, auth/session expiry, host heartbeat loss, app-server failure, etc.) instead of only presenting a generic lost connection.

Additional information

This report intentionally omits private project contents, credentials, session IDs, and filesystem details. I can provide sanitized timestamps, logs, screenshots, and exact app/Codex versions if the Codex team requests them.

Activity

  1. added
    bug
    windows-os
    connectivity
    on Aug 21, 2026
  2. github-actions commented on Aug 21, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. youngbumkim80 commented on Aug 21, 2026

    @youngbumkim80
    Author
  4. youngbumkim80 commented on Aug 21, 2026

    @youngbumkim80
    Author

    Additional reproducible symptom — Android app restart only restores Remote briefly

    The failure is continuing and is now reproducible in a more specific way:

    1. Remote connection from the Android ChatGPT app to the Windows host disconnects.
    2. Reconnecting normally is unreliable or fails.
    3. Fully close the ChatGPT app on the phone (remove/terminate the app), then relaunch it.
    4. Remote connects again for a short period.
    5. After a brief interval, the Remote connection drops again.
    6. Repeating the full app close/relaunch again produces the same temporary recovery followed by another disconnect.

    This temporary recovery after recreating the Android client process is important because the local Windows Codex task/host can remain available while only the Remote control path fails. That pattern suggests a possible client transport/session-state/reconnect lifecycle problem rather than the local coding task itself stopping.

    Current client context:

    • ChatGPT Android app: 1.2026.223
    • Android: 16
    • Host: Windows
    • Plan: Pro
    • Topology: one local Windows host + one Android phone; this is not a multi-host/multi-controller workflow.

    Regarding the bot-suggested potential duplicate #39860

    #39860 may be related because it also concerns Windows/Android Remote reconnect failures, but there is not enough evidence yet to close this report as a duplicate. #39860 has a specific measured trigger: an oversized initial thread/list payload (~259 KB) and unbounded previews, with connection recovery after reducing that payload. In this report, that payload-size trigger has not been measured or established. The strongest observed trigger here is different: fully restarting the Android app temporarily restores Remote, then the connection drops again shortly afterward while the local host remains usable.

    Please keep this issue open unless maintainers confirm the same root cause. If useful, please advise which sanitized Remote/app-server logs or timestamps would best distinguish:

    • oversized thread/list / envelope failure,
    • WebSocket or relay disconnect,
    • Android client session-state corruption/staleness,
    • host heartbeat/app-server reattachment failure,
    • auth/session expiry or reconnect-state failure.

    The current behavior makes Remote effectively unusable for sustained development because the user must repeatedly kill and relaunch the phone app just to regain a short-lived connection.

  5. rellaqaq commented on Sep 7, 2026

    @rellaqaq

    Android/macOS corroboration: Retry fails; phone-side host connection off/on restores

    Adding a related recovery discriminator, not claiming the same root cause as the Windows report.

    Observed 2026-09-07, with one Honor Android phone and one macOS ChatGPT host:

    • Android ChatGPT 1.2026.244 (21); Android OS version not yet captured.
    • macOS ChatGPT 26.901.51231 / build 8109, bundled app-server 0.153.4. Desktop-owned hosted Remote, not Remote SSH.
    • The phone uses WireGuard with a proxied egress. This remains a network confounder, not an established protocol defect.

    The user confirms ordinary ChatGPT works while only Remote fails. Remote can show a green Mac indicator alongside an offline page. The user explicitly reports:

    1. Tapping the offline page's Retry does not recover.
    2. In Android Remote settings → Connections → Mac, turning that connection off and then on restores Remote.

    This is a narrower reported recovery operation than the full Android app restart in the August21 follow-up. It does not require the reported recovery instructions to include deleting/re-pairing the device or restarting the Mac. Duration of recovery and durable repeated-entry acceptance are not established.

    Sanitized host observations, local time UTC+8:

    • Desktop and bundled app-server retain their original process generations throughout this window.
    • No Remote transport WARN/status transitions are recorded from17:10 through17:32:20.
    • At17:23:08, the client-tracker namespace records forwarding remote control connection closed transport event.
    • Android thread/resume arrivals are recorded before and after that event, including17:21:48 and17:24:05. Arrival is not proof of successful response delivery or UI rendering.

    The precise user-toggle timestamp/client identity has not been correlated, so the connection-close event must not be asserted as the exact toggle. Host logging also cannot exclude unlogged or client-only stalls. We have not established ACK starvation, a payload threshold, auth failure, or a common mechanism with#41573/#41775.

    Which supported Android diagnostic export/error fields would distinguish stale client recovery state, a response/stream delivery failure, and endpoint-specific network failure in this Retry-versus-connection-reset case? No raw credentials, enrollment identifiers or conversation contents are included.

  6. lowbyyj commented on Sep 9, 2026

    @lowbyyj

    Adding a Windows/Android report with host-side transport evidence. In my case, Remote usually reconnects after a short wait; repeated phone-app restarts are not required. Work continues normally on the PC throughout the reported mobile interruptions.

    Environment and symptoms

    • Windows desktop package: 26.901.6511.0.
    • ChatGPT Android: Google Play reports it up to date as of September 9. The exact mobile version number has not yet been captured.
    • Reconnects frequently appear after returning from the phone's home screen or another chat, and sometimes while remaining on the Remote screen. The host can briefly appear disconnected or connecting.
    • The frequency seems higher since I started using Astra, but this is a user observation; model causation has not been established.

    Host evidence

    Three Remote WebSocket disconnect/reconnect cycles were recorded on September 7. Host status returned to Connected after approximately 1.95 s, 2.77 s, and 2.13 s. These intervals measure host transport recovery, not full mobile UI recovery.

    The first cycle contained the following messages. Absolute timestamps have been replaced with elapsed time, and identifying fields have been omitted:

    T+0 ms    WARN remote control websocket reader disconnected, err: failed to read from websocket: WebSocket protocol error: Connection reset without closing handshake
    T+0 ms    INFO app-server remote control websocket connection cycle ended; connection_end_reason=ConnectionWorkerStopped; current_status=Connected; desired_state=Enabled
    T+0 ms    INFO remote control websocket status changed; previous_status=Connected; next_status=Connecting
    T+1950 ms INFO remote control websocket status changed; previous_status=Connecting; next_status=Connected
    

    No corresponding Windows sleep/shutdown or network-profile disconnect event was found at those three times. The inspected Application events also contained no Codex-related crash/hang record. Brief network-path loss and mobile-side problems are not ruled out.

    These are separate host observations, not a complete count or exact correlation of every mobile reconnect. Is there a supported mobile diagnostic export or session-disconnect reason that would help distinguish screen-transition reconnects from unexpected session/relay drops? No raw database, credentials, device/session identifiers, screenshots, or conversation contents are attached.

  7. bbottema commented on Oct 26, 2026

    @bbottema

    Can confirm. Long running sessions are killing on Codex Remote.

  8. XgrislyX commented on Nov 2, 2026

    @XgrislyX

    Confirmed user recovery: clearing accumulated sessions restored Windows/Android Codex Remote

    Update (2026-11-02): After extensive repeated Remote reconnection failures, I discovered approximately 14 accumulated Codex sessions/connections. I disconnected the accumulated sessions and re-established remote access. Since then, Remote has operated normally during my observation period.

    Before cleanup

    • Windows desktop Codex conversations still existed, but Android Remote repeatedly disconnected/reconnected.
    • Previous Codex tasks were missing on the phone.
    • Codex functionality had degraded severely, including inability to paste text.
    • The repeated failures prevented normal use.

    After cleanup/reconnection

    • Existing tasks and conversations reappeared on Android.
    • Remote connection remained stable; repeated reconnects stopped.
    • Pasting and normal Codex interactions worked again.
    • Existing desktop project work remained intact.

    Recovery steps for affected users

    1. On desktop, first verify existing Codex tasks are preserved and accessible.
    2. In ChatGPT, open Settings → Security → Active sessions and inspect sessions; log out of unneeded/stale sessions where applicable.
    3. Also inspect Settings → Connections → Control this PC for Remote pairing/authorization entries. These are distinct from account login sessions; the exact relevant control may depend on app version.
    4. Carefully revoke/disconnect obsolete Remote authorizations, avoiding interruption of active work.
    5. Re-establish one Remote connection between desktop and Android, then verify prior tasks are visible and basic editing/paste works.

    Outcome: Clearing the accumulated sessions and reconnecting resolved the issue on this system. The precise internal failure mechanism (count limit versus stale/conflicting state) has not been isolated. Please investigate session accumulation, stale enrollment cleanup, and whether excessive session state affects Remote lifecycle, thread listing, and UI interaction.

    Related: #39954.

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

    bugconnectivityremotewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions