Codex App does not recover Remote SSH connection after local sleep/wake
What version of the Codex App are you using?
Remote Codex version observed in the connection details: 0.145.0.
What platform is your computer?
macOS laptop.
What issue are you seeing?
Codex App connects to a workstation through an SSH tunnel exposed locally as localhost:2222. The tunnel is maintained with autossh and uses SSH server-alive keepalives.
When the laptop lid is closed, macOS sleeps and the SSH tunnel disconnects, as expected. After opening the lid, autossh should restore the tunnel. However, Codex App continues to display the workstation connection as disconnected and does not automatically retry or re-detect the restored local SSH endpoint. Manual reconnection is required.
This is especially inconvenient because the configured host and port do not change; only the underlying transport was interrupted during sleep.
What steps can reproduce the bug?
- Configure Codex App with a Remote SSH connection that points to
localhoston a local forwarded port. - Keep the forward alive with
autosshthrough a reachable relay. - Confirm Codex App has connected successfully.
- Close the Mac laptop lid long enough for macOS to sleep.
- Open the lid and wait for the network and autossh tunnel to recover.
- Open or inspect Codex App's Connections view.
Expected behavior
After the local SSH endpoint is reachable again, Codex App should automatically retry the configured connection, recover it, or clearly show that it is retrying. The user should not need to manually reconnect a static connection after every laptop sleep/wake cycle.
Actual behavior
The connection remains shown as disconnected after wake until the user manually reconnects it.
Additional information
The SSH tunnel includes server-alive keepalives and is configured to fail/restart promptly when the transport fails. This report concerns Codex App's connection-level recovery after that external tunnel becomes reachable again.