Skip to content

Codex mobile shows running desktop as offline and Reconnect silently does nothing #22898

Open

Description

@GGBondBlueWhale

Summary

The Codex desktop app is open and running on my Mac, but the Codex entry inside the ChatGPT iOS app shows the machine as offline. Tapping Reconnect in the iOS app does not appear to do anything: there is no loading state, no retry indication, no error message, and no diagnostic hint. The mobile app remains stuck on the offline state, so I cannot connect to Codex from my phone.

Environment

  • Codex desktop app: 26.513.20950 (2816)
  • macOS: Tahoe 26.4.1
  • Mac hardware: MacBook Pro 16-inch, Apple M5 Max, 128 GB memory
  • Desktop name shown in mobile app: Mac.attlocal.net
  • ChatGPT iOS app: 1.2026.125 (25565698938)
  • Plan: ChatGPT Pro
  • Approximate time observed: 2026-05-15 around 13:42–13:43 PDT
  • Request ID / correlation ID: not available because the UI shows no error banner or failure details

Steps to reproduce

  1. Open and keep the Codex desktop app running on macOS.
  2. Open the ChatGPT app on iOS.
  3. Go to the Codex section/device connection page.
  4. Observe that the Mac entry appears as offline, e.g. Mac.attlocal.net — Offline · Last seen 18 hours ago, even though the desktop Codex app is currently open.
  5. Tap Reconnect.

Actual behavior

  • The mobile app still shows the Mac as offline.
  • The Reconnect button appears to be non-functional from the user's perspective.
  • There is no visible loading spinner, state change, retry progress, permission prompt, sign-in prompt, network diagnostic, or error message.
  • The UI gives no actionable explanation for why the desktop app cannot be reached.

Expected behavior

  • If the desktop Codex app is currently running and signed in, the mobile app should refresh the device heartbeat/status and reconnect successfully.
  • If reconnection fails, tapping Reconnect should surface a clear error state or diagnostic message, such as auth/session mismatch, relay/device discovery failure, local network issue, stale device registration, or server-side connectivity problem.
  • The button should provide visible feedback while the reconnect attempt is happening, and should not fail silently.

Impact

This makes the mobile Codex integration unusable because the phone cannot connect to a desktop Codex instance that is actually open. The lack of any visible error or request/correlation ID also makes it hard for users to provide useful diagnostics.

Suggested investigation / fix

  • Verify that the iOS Reconnect action is actually dispatching a reconnect request and not being swallowed by a stale UI/device record.
  • Add a visible loading, timeout, and failure state for the reconnect flow.
  • Refresh the desktop heartbeat/device presence when the mobile page is opened or when Reconnect is tapped.
  • Surface a diagnostic error code/request ID when reconnect fails.
  • Check whether recent Codex desktop/iOS app versions have a stale pairing, relay discovery, or device-registration issue between desktop Codex and ChatGPT iOS.

Screenshot

A single screenshot is attached showing the relevant iOS Codex state: Mac.attlocal.net is shown as Offline · Last seen 18 hours ago, with a Reconnect button that does not visibly respond when tapped.

The remaining environment details are described in text above instead of attaching additional screenshots.

Image

Activity

  1. added
    bug
    app
    on May 15, 2026
  2. iwaitu commented on May 18, 2026

    @iwaitu

    the same problem +1

  3. sdkysfzai commented on May 18, 2026

    @sdkysfzai

    is this shit fixed?

  4. marsevilspirit commented on May 18, 2026

    @marsevilspirit

    This feature is really poorly implemented, the connection is extremely unstable.

  5. juntong777 commented on May 19, 2026

    @juntong777

    same problem here

  6. guotingchao commented on May 19, 2026

    @guotingchao

    Unavailable features

  7. kevinsslin commented on May 19, 2026

    @kevinsslin

    I got stuck by this issue for 3 days as well.

  8. directional-star commented on May 19, 2026

    @directional-star

    Same problem. I don't understand how it is working for anyone. With this bug the remote control trip feature is unusable since I was able to connect once and since then the machine shows offline.

  9. sdkysfzai commented on May 19, 2026

    @sdkysfzai

    Same problem. I don't understand how it is working for anyone. With this bug the remote control trip feature is unusable since I was able to connect once and since then the machine shows offline.

    You need to quit codex desktop entirely and then re-open it, Then the mobile app will be able to connect.

  10. rrosztoczy commented on May 21, 2026

    @rrosztoczy

    Also have this issue! Makes the mobile app unusable

  11. KeKeDou810 commented on Jun 2, 2026

    @KeKeDou810

    I got the same issue on Windows, still not fixed and don't know what's the problem.

  12. jackyissocute commented on Jun 7, 2026

    @jackyissocute

    Yeah. And every time I start a task in the Codex interface, it starts with Reconnecting 4/5.... Why? I feel so sad about it. And my Mac always seems to be asleep on my iPhone, same here.

  13. markrowan commented on Jun 16, 2026

    @markrowan

    I tested a narrow fix for the reconnect case described here, specifically the case where the remote-control daemon/app-server still appears alive locally, but the mobile app remains stuck waiting for the desktop after the mobile app is backgrounded or loses its session.

    Branch:
    https://github.com/markrowan/codex/tree/fix/remote-control-reenable-reconnect

    The change makes remoteControl/enable request a fresh websocket connection when remote control is already Connected, instead of treating that call as a no-op. In my local testing, this allowed the mobile client to recover the environment without manually stopping and restarting remote control.

    A couple of caveats:

    This was tested on Linux, which I understand is not officially supported for this flow.
    I could not open a PR against openai/codex because GitHub requires collaborator permission.
    So this appears to resolve the specific reconnect/no-op case we reproduced, but I have not validated broader remote-control lifecycle cases beyond that.

    After two weeks of testing, the connection is mostly stable. It still drops from time to time, requiring a restart of the desktop service, but is much more robust than without the fix. For example, the past 5 days my mobile app has been connected without interruption.

  14. chaoyangnz commented on Jun 20, 2026

    @chaoyangnz

    Reconnecting frequently. Fix fix

  15. seye11 commented on Jul 15, 2026

    @seye11

    I’m seeing a related persistent-session problem in normal ChatGPT mobile use:

    1. Connect to an online Codex desktop host.
    2. Open a Codex conversation from the mobile Remote surface.
    3. Switch to another Codex conversation.
    4. The mobile client reconnects and performs another full reload instead of keeping the host session attached.

    This also happens repeatedly during ordinary mobile check-ins, so the workflow feels like a new connection is being established for each conversation rather than one persistent host connection.

    Expected behavior:

    • Keep the authenticated Remote connection alive across conversation switches and app backgrounding.
    • Switching conversations should hydrate only the selected thread, without reconnecting the entire host session.
    • Recover transparently from ordinary network transitions when the desktop host is still online.

    A separate but related multi-device notification request is tracked in #33300.

  16. david-rohrschneider commented on Jul 16, 2026

    @david-rohrschneider

    Idk why the hell but in my case it completely works now without reconnect:

    1. Install codex on ubuntu server machine
    2. on my laptop open the codex desktop app and setup the ssh connection to the server
    3. Connect my mobile gpt app to my laptop codex app
    4. On my laptop codex set up the mobile permission to the ssh remote

    Now i can always use my mobile app without even having the laptop running. I dont know if this is a security issue though since usually i need vpn to connect to my remote server.

  17. kloakatv commented on Oct 6, 2026

    @kloakatv

    Still reproducible – iOS Remote stuck offline after longer inactivity

    I’m experiencing the same issue with Codex Remote from the ChatGPT iOS app.

    After Codex Remote has not been used for several hours, my Mac shows as:
    Offline – Last seen several hours ago

    Tapping Reconnect starts the loading spinner, but the connection never recovers and no error or actionable authentication prompt is shown.

    This has started occurring noticeably since I enabled Daybreak / the additional account security setup, although I cannot confirm that Daybreak itself is the cause.

    The important usability issue is that Remote does not recover its session automatically. Having to potentially sign out and authenticate again defeats much of the benefit of using Codex Remote from mobile.

    Expected behaviour:
    Reconnect should either restore the existing remote session automatically, refresh authentication transparently, or explicitly ask for re-authentication if that is required.

    Actual behaviour:
    The Mac remains offline and the Reconnect control keeps loading without resolving the condition.

    Screenshot available showing the offline host and stuck reconnect state.

    This significantly impacts the usefulness of Codex Remote for longer-running Codex workflows.

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

    appbugremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions