codex - 💡(How to fix) Fix Mobile device list exposes Desktop-managed SSH remotes as Codex Desktop devices and can break mobile remote connections

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Codex mobile shows SSH remotes that were added/connected from Codex Desktop as if they were normal Codex Desktop devices. After a Mac Codex Desktop connects to an SSH remote (devbox), iPad/iPhone/Android ChatGPT/Codex all show that SSH remote in the account-level connection list alongside real desktop machines. In this state, other mobile clients can see the devices but fail to connect remotely.

This is confusing because the SSH remote is not independently added from mobile and is not necessarily a standalone logged-in Codex Desktop device. It appears to be a Desktop-managed SSH-backed app-server/proxy being synced into the same mobile device list as real desktops.

Root Cause

This is confusing because the SSH remote is not independently added from mobile and is not necessarily a standalone logged-in Codex Desktop device. It appears to be a Desktop-managed SSH-backed app-server/proxy being synced into the same mobile device list as real desktops.

Code Example

"codex-managed-remote-connections": [
  {
    "hostId": "remote-ssh-discovered:<ssh-host>",
    "displayName": "<ssh-host>",
    "source": "discovered"
  }
],
"remote-connection-auto-connect-by-host-id": {
  "remote-ssh-discovered:<ssh-host>": true
}

---

codex app-server --listen unix://
codex app-server proxy
RAW_BUFFERClick to expand / collapse

Summary

Codex mobile shows SSH remotes that were added/connected from Codex Desktop as if they were normal Codex Desktop devices. After a Mac Codex Desktop connects to an SSH remote (devbox), iPad/iPhone/Android ChatGPT/Codex all show that SSH remote in the account-level connection list alongside real desktop machines. In this state, other mobile clients can see the devices but fail to connect remotely.

This is confusing because the SSH remote is not independently added from mobile and is not necessarily a standalone logged-in Codex Desktop device. It appears to be a Desktop-managed SSH-backed app-server/proxy being synced into the same mobile device list as real desktops.

Environment

  • Local desktop: Codex Desktop on macOS
  • Codex Desktop version observed: 26.513.31313
  • Codex CLI/app-server version observed: 0.131.0-alpha.9
  • Mobile clients: iPad, iPhone, Android ChatGPT/Codex
  • Remote SSH host: Linux server, anonymized here as devbox
  • Additional real desktop devices: MacBook Air, macmini, Windows machine

What happened

  1. On iPad, add/connect real desktop devices such as MacBook Air and macmini.
  2. On MacBook Air Codex Desktop, connect to an SSH remote host (devbox).
  3. The iPad connection sheet now shows three entries at the same level:
    • Codex Desktop / macmini.local
    • Codex Desktop / MacBook-Air.local
    • Codex Desktop / devbox
  4. iPhone and Android ChatGPT/Codex also see the same device list without separately adding SSH connections.
  5. Other mobile clients can see these entries but remote connection fails or becomes unreliable.

Observed local state

On the MacBook Air, Codex Desktop persists the SSH remote as a managed remote connection:

"codex-managed-remote-connections": [
  {
    "hostId": "remote-ssh-discovered:<ssh-host>",
    "displayName": "<ssh-host>",
    "source": "discovered"
  }
],
"remote-connection-auto-connect-by-host-id": {
  "remote-ssh-discovered:<ssh-host>": true
}

When connected, the Mac also maintains an SSH command that launches a remote app-server proxy, and the remote host runs processes like:

codex app-server --listen unix://
codex app-server proxy

The remote host did not necessarily have a standalone remote_control_enrollments entry, so this appears to be a Desktop-managed SSH/proxy remote rather than a first-class independently enrolled desktop device.

Expected behavior

One of the following should happen:

  • Mobile should not expose Desktop-managed SSH remotes as account-level Codex Desktop devices unless they are intentionally supported from mobile; or
  • Mobile should clearly label them as SSH/proxy remotes managed by a specific desktop, e.g. SSH remote via MacBook Air; and
  • There should be a clear way to remove/forget such SSH-backed devices from the account/mobile connection list; and
  • Their presence should not prevent iPhone/Android from connecting to real desktop devices.

Actual behavior

The SSH remote appears in mobile as a normal Codex Desktop device (devbox) alongside real desktop machines. This makes it unclear which entries are real independent devices vs. Desktop-managed SSH remotes, and it appears to break or interfere with mobile remote connections on other clients.

Impact

  • Device list becomes misleading across iPad/iPhone/Android.
  • Users cannot tell whether a host is independently enrolled or only reachable through another desktop's SSH proxy.
  • Removing the SSH remote locally is unclear and may not reliably clean up the account-level/mobile list.
  • Other mobile clients may fail to connect after the SSH remote appears.

Notes

Hostnames and account identifiers are anonymized here. I can provide more specific logs or request IDs privately if needed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

One of the following should happen:

  • Mobile should not expose Desktop-managed SSH remotes as account-level Codex Desktop devices unless they are intentionally supported from mobile; or
  • Mobile should clearly label them as SSH/proxy remotes managed by a specific desktop, e.g. SSH remote via MacBook Air; and
  • There should be a clear way to remove/forget such SSH-backed devices from the account/mobile connection list; and
  • Their presence should not prevent iPhone/Android from connecting to real desktop devices.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Mobile device list exposes Desktop-managed SSH remotes as Codex Desktop devices and can break mobile remote connections