codex - 💡(How to fix) Fix ChatGPT iOS app fails to connect to Linux Codex remote-control host over SSH/Tailscale while macOS Codex App works

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…
RAW_BUFFERClick to expand / collapse

What issue are you seeing?

Environment:

  • Debian Linux host
  • Tailscale networking
  • SSH enabled and working
  • Codex CLI tested on:
    • 0.130.0
    • 0.132.0
    • 0.133.0
  • ChatGPT iOS app fully updated
  • macOS Codex App works correctly against the same host

Observed behavior:

  • ChatGPT iOS app repeatedly reconnects and eventually reports “The network connection was lost”
  • SSH logs show successful authentication and session creation from the iPhone app
  • The iPhone app successfully invokes:
    • codex --version
    • codex app-server proxy
  • No SSH/network/authentication failures occur

Important findings:

  • macOS Codex App can connect successfully to the same Debian host using the same SSH/Tailscale setup
  • Therefore the Linux remote-control server path itself appears functional
  • The issue appears specific to the ChatGPT iOS remote-control client

Additional regression:

  • Codex 0.133.0 with remote_control = true causes: Invalid request: invalid type: string ":workspace", expected internally tagged enum PermissionProfileSelectionParams
  • Disabling remote_control avoids this local crash
  • Downgrading to 0.130.0 and 0.132.0 avoids the local crash, but iPhone still cannot connect

Relevant logs:

  • SSH sessions open/close successfully from iPhone
  • codex app-server proxy is invoked successfully
  • No fatal app-server logs appear
  • Tailscale connectivity verified

What steps can reproduce the bug?

  1. Install Codex CLI on a Debian Linux host
  2. Enable: [features] remote_control = true
  3. Connect the host and iPhone to the same Tailscale network
  4. Add the Linux host as an SSH connection inside the ChatGPT iOS app
  5. Connect successfully from the macOS Codex App using the same SSH/Tailscale configuration
  6. Attempt to connect from the ChatGPT iOS app

Result:

  • The iPhone app repeatedly reconnects and eventually reports “The network connection was lost”
  • SSH authentication succeeds
  • codex app-server proxy is invoked
  • No usable remote session is established

What is the expected behavior?

The ChatGPT iOS app should establish a working remote Codex session against the Linux SSH host, matching the behavior of the macOS Codex App using the same SSH/Tailscale configuration.

Additional information

No response

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING