No supported way to manage the SSH remote App Server lifecycle
What version of Codex CLI is running?
codex-cli 0.171.0
What subscription do you have?
pro 200
Which model were you using?
gpt-6.2-sol
What platform is your computer?
Linux 5.4.250-2-velinux1u1-amd64 x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
NA
Codex doctor report
not available
What issue are you seeing?
When I connect to a Linux host through Codex’s built-in SSH connection, the remote App Server is reachable, but I can’t manage it from the CLI. The interactive /daemon menu cannot restart or update the server, and codex app-server daemon restart reports that the running server is unmanaged.
After upgrading the standalone CLI on the SSH host, I had CLI 0.171.0 installed while the App Server was still running 0.160.1. This has happened repeatedly in my setup. To bring the server up on the installed version, I have to open a separate SSH session, find and terminate the old process, and start the daemon manually.
What steps can reproduce the bug?
-
Use Codex’s built-in SSH connection to connect to a Linux x86_64 host with a standalone Codex CLI install.
-
With the remote App Server still running, upgrade the standalone CLI on the SSH host.
-
On the SSH host, open the interactive Codex CLI and use
/daemonto try to restart or update the background server. The menu does not let me complete either action. -
From a shell on the same host, run
codex app-server daemon version. In my case, it reportedcliVersion: 0.171.0,managedCodexVersion: 0.171.0, andappServerVersion: 0.160.1. -
Run
codex app-server daemon restarton the host. It fails with:Error: app server is running but is not managed by codex app-server daemon
What is the expected behavior?
The remote App Server that Codex uses over SSH should have a supported restart and update path through /daemon or codex app-server daemon. After a CLI upgrade, I should be able to restart the remote server on the installed version and reconnect without finding and killing its PID manually.
Additional information
No response