Skip to content

[Linux CLI / Android 1.2026.230] Pairing toast succeeds but mobile shows no connected devices and host receives no attach/claim #41638

Open

Description

@giaaaacomo

Summary

Codex Remote Control pairing appears to succeed on Android, but the device never becomes visible/connected.

The Android app shows a success toast after entering the pairing code, then immediately returns to a screen saying that no devices are connected.

The Linux host remains healthy and connected to the Remote backend throughout.

Environment

Host:

  • Ubuntu 26.04 LTS
  • Codex CLI: 0.150.1
  • Remote Control started via CLI daemon mode

Mobile:

  • Android
  • ChatGPT app: 1.2026.230

Reproduction

  1. Start Remote Control:
codex remote-control start

Output:

Starting app-server daemon with remote control enabled...
This machine is available for remote control as <hostname>.
  1. Verify status:
codex remote-control start --json

Relevant result:

{
  "mode": "daemon",
  "status": "connected",
  "environmentId": "<redacted>",
  "timedOut": false,
  "daemon": {
    "status": "alreadyRunning",
    "cliVersion": "0.150.1",
    "appServerVersion": "0.150.1"
  }
}
  1. Generate a pairing code:
codex remote-control pair
  1. Enter the code in ChatGPT Android.

  2. Android shows a toast indicating that pairing succeeded.

  3. The Remote screen still says that no devices are connected.

  4. Reopening/force-stopping the Android app does not help.

  5. Repeating the test over both Wi-Fi and mobile data produces the same result.

Host-side diagnostics

With:

RUST_LOG=trace codex remote-control start

the host successfully reaches chatgpt.com, creates the pairing request, receives a valid manual pairing code and environment ID, and maintains an active WebSocket connection.

The Remote backend continues exchanging healthy:

ping
pong status="active"
ack

messages.

Example pattern:

remoteControl/pairing/start
...
connection is ready
...
pairingCode: <redacted>
manualPairingCode: <redacted>
environmentId: <redacted>
...
Received message {"type":"ping", ... "state":"background"}
Sending ... {"type":"pong","status":"active", ...}
Received message {"type":"ack", ...}

However, after Android reports "pairing succeeded", no obvious device attach / pairing claim event appears in the host trace.

Additional behavior

Sometimes running:

codex remote-control

prints:

Error: Remote control is enabled on <hostname> but the connection is errored.

while at the same time:

codex remote-control start --json

still reports:

"status": "connected"

So there may also be a state inconsistency between the interactive Remote Control command and the daemon/backend connection state.

Expected behavior

After entering the pairing code successfully, the Linux host should appear as a connected Remote device in the Android ChatGPT app.

Actual behavior

Pairing success is acknowledged by the Android UI, but the host never appears as connected.

Notes

The host-side connection appears healthy:

  • pairing request succeeds
  • WebSocket remains connected
  • ping/pong/ack continue normally
  • environment ID is stable
  • changing Wi-Fi/mobile network does not affect the issue

This looks like the failure may occur after pairing acceptance, during device claim/attach/registry propagation on the Android/backend side.

Possibly related

There are other recent Remote Control reports involving:

  • Android pairing/attach failures
  • stale or missing Remote device lists
  • regressions around ChatGPT mobile 1.2026.230
  • Remote Control reporting errored despite a connected backend session

I can provide a sanitized trace log if useful.

Activity

  1. added
    bug
    CLI
    connectivity
    on Aug 30, 2026
  2. ivanceb26 commented on Sep 9, 2026

    @ivanceb26

    I am seeing the same issue with a Linux/Ubuntu remote host and the ChatGPT Android app.

    Host:

    • Ubuntu Linux (headless server)
    • Codex CLI and managed app-server: 0.154.0
    • Remote Control enabled
    • App-server daemon is running and exposes its control socket
    • The Remote Control bridge is active and maintains an established TLS connection to the OpenAI
      backend

    Android:

    • ChatGPT Android app
    • Manual pairing code is accepted successfully

    Observed behavior:

    1. I generate a fresh code with codex remote-control pair.
    2. Android accepts the code and reports pairing success.
    3. The host remains healthy and connected.
    4. Android does not show the Linux host as a connected device / no remote session becomes available.
    5. The app reports Transport unavailable.

    I already updated/restarted the Codex Remote Control bridge and restarted the managed app-server
    daemon. I also confirmed that both now run Codex 0.154.0. Re-pairing still does not make the host
    visible in Android.

    This looks like pairing succeeds, but the Android client never completes the device claim/attach
    step. Is this a known Linux host + Android Remote regression, or is there additional host-side
    tracing I can provide?

  3. tanakarin commented on Sep 11, 2026

    @tanakarin

    Clearing both the cache and app storage for the ChatGPT Android app resolved the connection issue for me. After signing in again and pairing the device, I was able to connect successfully.

  4. inv1sible commented on Sep 11, 2026

    @inv1sible

    I tested this on another Linux host.

    My result was similar, but materially different from the original report:

    • Pairing succeeded.
    • A real Remote Control session was created successfully.
    • Commands were executed on the Linux host through the remote session.
    • Therefore I could not reproduce the complete failure mode where no usable remote session ever becomes available.

    However, I could independently reproduce the status inconsistency mentioned in this issue.

    For more than six minutes, these two commands reported contradictory states at the same time:

    codex remote-control start --json
    

    reported:

    "status": "connected"

    while:

    codex remote-control
    

    reported:

    Error: Remote control is enabled on <hostname> but the connection is errored.
    

    This was persistent rather than a brief transition state.

    There was one important confounding factor during the Android pairing test: the managed app-server automatically updated from 0.149.0 to 0.154.0 during the pairing window. Android briefly showed a connection error around that time, so that transient mobile failure may have been caused by the app-server restart/update rather than the original claim/attach bug.

    Afterwards, Remote Control became usable and a real remote session worked successfully.

    So my classification would be:

    • original “pairing succeeds but no usable session appears”: not reproduced
    • contradictory Remote Control status reporting: reproduced

    I also captured sanitized host-side diagnostics and can provide the relevant trace excerpts if useful.

  5. ogtega commented on Oct 18, 2026

    @ogtega

    Additional reproduction: macOS 27.0.1 / arm64 / Codex CLI 0.163.0

    I can reproduce inconsistent Remote Control status reporting on macOS without the Codex desktop application installed.

    Environment

    • macOS 27.0.1, build 26A434
    • Apple Silicon (arm64)
    • Codex CLI and managed app-server: 0.163.0
    • ChatGPT authentication
    • Persistent app-server daemon (pid backend)
    • No configured proxy
    • iPhone paired successfully; live session messages, input prompts, and remote control work normally

    Consecutive command results

    $ codex remote-control --json
    Error: Remote control is enabled on mac.lan but the connection is errored.
    
    $ codex remote-control start --json
    {
      "mode": "daemon",
      "status": "connected",
      "serverName": "mac.lan",
      "environmentId": "<redacted>",
      "timedOut": false,
      "daemon": {
        "status": "alreadyRunning",
        "backend": "pid",
        "managedCodexVersion": "0.163.0",
        "cliVersion": "0.163.0",
        "appServerVersion": "0.163.0"
      }
    }

    The daemon was already running when the second command returned connected.

    Additional diagnostic context

    Earlier transport logs repeatedly reported:

    HTTP 403 Forbidden
    {"detail":"Multi-factor authentication required"}
    error_kind=PermissionDenied
    has_enrollment=false
    environment_id=None
    

    The later start --json result contained a successfully assigned environmentId.

    Actual behavior: One command reports an errored connection while another reports connected, and real iPhone remote interaction is functional.

    Expected behavior: Both commands should consistently represent the current Remote Control connection state or clearly distinguish the different states being reported.

    This may be a status-query inconsistency, stale connection state, or a mismatch between enrollment and transport status. The underlying cause has not been established.

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

    CLIbugconnectivityremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions