You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop should update or restart remote Codex app-server when version is too old #20492
When Codex Desktop connects to a remote SSH/Brix Codex environment and detects that the remote Codex app-server is below the minimum supported version, it should offer a one-click fix, and ideally handle the fix automatically when safe.
Today the Desktop shows an error like:
Codex on this environment is out of date. Update to 0.128.0 or newer. Current version: 0.126.0-alpha.15
The working manual recovery is:
ssh <remote> 'codex --update && codex --version'\n# then restart/kill the stale remote codex app-server process so Desktop reconnects to the new binary\n```\n\nThat is hard to discover, and the user often loses access to active remote sessions until they manually SSH in and know which process/cache to update.\n\n### Expected behavior\n\nCodex Desktop should do one of the following when it detects a remote version mismatch:\n\n1. Show an explicit action such as `Update remote Codex and restart app-server`.\n2. Run the remote update/restart automatically when the remote host is reachable and the user has permission.\n3. If automatic update is intentionally unsafe, provide copy-pasteable commands that update the remote CLI and restart the specific app-server process Desktop is using.\n\nThe flow should distinguish these states clearly:\n\n- installed remote `codex` is too old\n- installed remote `codex` is new enough, but the running app-server process is stale\n- Desktop itself is too old\n- update failed because the remote updater failed\n\n### Why this matters\n\nThis has shown up for remote app users after Desktop updates raised the minimum app-server version. The remote pod/host can be healthy and SSH-reachable, but Desktop becomes unusable until the user manually updates the remote CLI cache and restarts the old app-server.\n\n### Related\n\n- #19300 covers stale remote app-server reuse and diagnostics.\n- This request is specifically for a product-supported update/restart path when Desktop already knows the remote app-server version is below the minimum.
Reacted by Axel Delafosse, Mautisim Munir and DerekWu-at
I hit a more dangerous variant of this on macOS over Remote SSH today: Desktop did not reject or warn about the stale remote server. It connected successfully, but every opened thread rendered only the initial user message and first assistant update, while later turns were invisible. Sending new prompts still worked, so this can cause users to repeat completed work and consume additional credits.
Environment:
macOS 26.6.2, Apple Silicon
Desktop-bundled app-server: 0.150.0-alpha.12.2
Remote SSH-selected path: ~/.local/bin/codex
Installed/running remote app-server: 0.145.0 (process had remained alive for ~20 hours)
Remote transcript examined: intact JSONL with 1,300+ records, 7 user messages, 22 assistant messages, and 2 compaction records; Desktop displayed only the first user/assistant pair
The remote app-server log repeatedly reported: failed to load models cache: missing field base_instructions
The Desktop had remote_compaction_v2 enabled. This looks like an un-negotiated schema/capability mismatch: the old server could remain “connected” while replaying compacted thread history incorrectly or incompletely.
Running ~/.local/bin/codex update upgraded the standalone install from 0.145.0 to 0.150.1. A reconnect/restart is still required because the running app-server keeps the old executable.
Requested behavior:
Negotiate app-server/cache/compaction schema compatibility, not only a minimum connection version.
Never silently accept a partial thread/read/resume result. Surface an error if persisted turns are omitted.
Automatically update and restart a stale remote server, or provide a one-click repair.
Show the selected remote binary path plus installed and running versions.
Preserve/restore the full thread after reconnect, and consider credit remediation when the UI caused repeated work.
This is not transcript loss; the rollout JSONL is complete on disk.
Activity
github-actions commentedon Apr 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
leov-openai commentedon Apr 30, 2026
Related Codex App /feedback UUID:
019ddbe1-d363-7051-944e-4e2a5d23ba14louis-gale commentedon Aug 29, 2026
I hit a more dangerous variant of this on macOS over Remote SSH today: Desktop did not reject or warn about the stale remote server. It connected successfully, but every opened thread rendered only the initial user message and first assistant update, while later turns were invisible. Sending new prompts still worked, so this can cause users to repeat completed work and consume additional credits.
Environment:
The remote app-server log repeatedly reported:
failed to load models cache: missing field base_instructionsThe Desktop had
remote_compaction_v2enabled. This looks like an un-negotiated schema/capability mismatch: the old server could remain “connected” while replaying compacted thread history incorrectly or incompletely.Running
~/.local/bin/codex updateupgraded the standalone install from 0.145.0 to 0.150.1. A reconnect/restart is still required because the running app-server keeps the old executable.Requested behavior:
thread/read/resume result. Surface an error if persisted turns are omitted.This is not transcript loss; the rollout JSONL is complete on disk.