Skip to content

[macOS Desktop 26.1103.32239] P0 regression: SSH remote projects never reconnect at launch; app opens empty, composer unresponsive #60047

Open

Description

@alexander-dreyzen

What version of the Codex App are you using (From “About Codex” dialog)?

ChatGPT/Codex desktop 26.1103.32239, build 25471, updated in place from build 25241. Read from the installed app's Info.plist. Bundled CLI: 0.167.0-alpha.3.2.

What subscription do you have?

Not collected for this report.

What platform is your computer?

Darwin 27.2.0 arm64 arm, macOS 27.2 (build 26B123)

What issue are you seeing?

Severity: P0 regression. The app is unusable for anyone whose projects are SSH remote projects.

After the update to build 25471, the app opens empty: no projects or chats appear, and the composer does not respond. Two relaunches did not change this.

The app no longer connects to any SSH host at launch. On both launches after the update it logged:

[remote-connections/window-context] remote_project_connection_restore_skipped reason=no_remote_projects

The remote projects are still there: ~/.codex/.codex-global-state.json still lists all three under remote-projects, and selected-project still points at one of them. So the restore seems to be reading a different, empty source.

On build 25241, the same Mac and state started a connection to each host at launch, and this skip line was not logged:

[AppServerConnection] Starting app-server connection hostId=remote-ssh-discovered:<host> transport=websocket

On build 25471 the only such line is for hostId=local transport=stdio. All three SSH hosts stay nextState=disconnected and none reaches connecting. The hosts themselves are fine: plain ssh to each works from the same Mac.

Local data is not damaged: state_5.sqlite passes pragma integrity_check, and the projects table is empty on the previous build too, so it does not look like the cause.

This differs from #27284, where the project is online but shows No chats. Here no connection is attempted at all.

What steps can reproduce the bug?

  1. On build 25241, have SSH remote projects saved and working, with no local projects.
  2. Update in place to 26.1103.32239 (build 25471) and relaunch.
  3. The app opens empty and the composer does not respond.
  4. In ~/Library/Logs/com.openai.codex/, find remote_project_connection_restore_skipped reason=no_remote_projects, and no Starting app-server connection line for any SSH host.

Seen on one Mac so far. Two others on older builds work, and we are not relaunching them, since an update is already downloaded on each.

What is the expected behavior?

As on build 25241: saved SSH remote projects are restored at launch, connections to their hosts start, and their chats and the composer work.

Additional information

Other lines from the same launch, in case they help. Both of the first two also appear on build 25241 or look unrelated to this, so they may be noise:

warning Failed to reconcile temporary app-server state errorName=SqliteError
warning [tpp-local-executor] Local Work executor startup failed attempt=2 errorCode=ENOENT

The local app-server also reports this WARN as a connection error, with code: connection-failed while state=connected:

ignoring invalid experimental feature enablement keys: apps_mcp_path_override, daybreak_program_propagation

Activity

  1. added
    bug
    app
    on Nov 7, 2026
  2. github-actions commented on Nov 7, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. solzard commented on Nov 7, 2026

    @solzard

    Confirming the SSH startup/reconnect symptom on another macOS installation with the same app version.

    Environment verified from the installed app and OS:

    • ChatGPT desktop 26.1103.32239, build 25471.
    • macOS 26.7.2, Apple Silicon / arm64.

    During normal use, after quitting and reopening the app, existing remote SSH connections remain disconnected. This started after a recent desktop app update. Manually unchecking and rechecking the existing Connect checkbox in Settings > Connections restores remote SSH access. The exact first affected release has not been established.

    A read-only inspection of existing local logs found the same startup marker reported here:

    remote_project_connection_restore_skipped reason=no_remote_projects
    

    The startup reconciliation log also reports autoConnectConnectionCount=0 even though SSH hosts were discovered. A current read-only state check confirms saved remote projects are still present. Later in the same launch log, an SSH app-server connection starts and the host transitions from connecting to connected.

    The Connect workaround above is confirmed by direct use. The log inspection supports a startup restoration/auto-connect problem, but does not establish the root cause. No connection settings, SSH keys, or persisted app state were edited as part of this investigation.

    This also corroborates the macOS counterpart of the restart/reconnect symptom in #59931. Hostnames, addresses, usernames, local paths, and conversation identifiers are omitted.

  4. kendalleasterly commented on Nov 8, 2026

    @kendalleasterly

    Corroborating the saved SSH connection / startup auto-connect symptom on a personal MacBook Pro. I have to go into Settings > Connections and re-enable the existing SSH connection when I return to the app. The saved host configuration remains present.

    This persisted through an update during diagnosis on November 8:

    • Before: desktop app 26.1103.31037, build 25241.
    • After: desktop app 26.1103.41825, build 25679.
    • Client: macOS 27.0.1 (26A434), arm64.
    • Bundled/local app-server version reported in both launch logs: 0.167.0-alpha.3.2.
    • SSH host: Apple Silicon hardware running Fedora Linux Asahi Remix 45 (Server Edition Prerelease), kernel 7.2.12-402.asahi.fc45.aarch64+16k, aarch64; remote Codex CLI 0.167.0.
    • Transport: the desktop app's SSH connection over Tailscale, using a concrete alias in ~/.ssh/config, key authentication, port 22. Tailscale 1.104.5 on both machines.

    Verified after updating to build 25679

    The launch log contains:

    2026-11-08T16:48:41.684Z info [remote-connections/window-context] remote_project_connection_restore_skipped reason=no_remote_projects
    2026-11-08T16:48:41.717Z info [remote-connections/window-context] refresh_completed autoConnectConnectionCount=0 codexManagedConnectionCount=0 discoveredConnectionCount=1 nextConnectionCount=1 previousConnectionCount=0
    

    However, a read-only inspection of ~/.codex/.codex-global-state.json shows:

    • remote-connection-auto-connect-by-host-id[<SSH host ID>] is true. This was also checked before updating.
    • remote-projects still contains five projects for that SSH host.
    • codex-managed-remote-connections still contains the same host entry.

    Through at least two minutes of the updated launch, there is no Starting app-server connection event for this SSH host and no SSH connection failure/retry event for it. The local app-server connects normally.

    At that point, a separate, noninteractive SSH connection from the same Mac succeeded with the existing key and strict host-key checking. The remote login shell found codex and returned codex-cli 0.167.0. The host had approximately 38.8 hours of uptime; sshd and tailscaled were active, and sleep.target, suspend.target, hibernate.target, and hybrid-sleep.target were masked. The local Tailscale status reported Running, no health warnings, and the Linux peer online and active.

    Earlier launch / workaround

    Before the update, build 25241 logged the same no_remote_projects skip and discovered-one/auto-connect-zero combination at 16:22:42Z. At 16:23:58.320Z, the auto-connect count became one; the SSH app-server connection then started at 16:23:58.321Z and reached connected at 16:23:59.798Z. This is consistent with my experience that re-enabling the existing connection restores access. The same startup markers are also present in two launch logs from November 7.

    I expect the enabled SSH connection to remain enabled and reconnect automatically after reopening the app or waking the client Mac. The host is configured to stay awake, and I have also been able to SSH into it after roughly a day of inactivity. Previously, when that other machine ran macOS and was connected through the desktop app's device-control method, I did not need this repeated manual re-enable step; that was a different transport/setup.

    These findings support a startup restoration/auto-connect discrepancy, but do not establish its root cause or first affected release. In particular, my symptom already occurred on build 25241, so this is additional evidence about the reconnect symptom rather than proof that it first appeared in build 25471. Is there a supported way to retain automatic SSH reconnection across launches?

  5. blackSp0nge commented on Nov 9, 2026

    @blackSp0nge

    Still reproduces on macOS desktop 26.1103.60933 (build 25894). On this Mac, auto-connect worked on every launch from Oct 26 until the Nov 7 Sparkle update (last good build here: 24614). Every launch since logs remote_project_connection_restore_skipped reason=no_remote_projects and autoConnectConnectionCount=0. The host is a codex-managed SSH connection (no ~/.ssh/config alias); plain SSH with the same key works, and the path/version probes and bootstrap all return 0 when it does connect.

    Two additions that may help triage:

    1. Adding a remote project does not help. With remote-projects holding one entry for the same hostId, remote-project-connection-backfill-completed=true and remote-connection-auto-connect-by-host-id[host]=true on disk, the next launch still logged restore_skipped reason=no_remote_projects and autoConnectConnectionCount=0 in the initial refresh (~0.16 s after launch). codex-managed-remote-connections is read correctly at that moment; the other three keys read as empty. This fits the initialization-order hypothesis in #59931.

    2. What "revisiting Connections" actually does. The Settings > Connections SSH (or Devices) sub-page starts a 15 s setInterval that calls the SSH connection refresh. It does not refresh on mount. The first tick reads the saved preference correctly and connects:

    UTC Event
    08:19:27.752 Launch; initial refresh autoConnectConnectionCount=0
    08:22:00.755 Open Settings > Connections > Devices (SSH tab at 08:22:01.951)
    08:22:15.781 Refresh (previousConnectionCount=1), autoConnectConnectionCount=1, ensure_remote_app_server
    08:22:17 Connected
    08:24:34 Relaunch; initial refresh autoConnectConnectionCount=0
    08:25:39.860 Open Settings > Connections > SSH
    08:25:54.859 Refresh autoConnectConnectionCount=1; connected at 08:25:56

    The top-level Connections page alone does not start the timer, and opening a connection's "…" menu does not trigger a refresh. So a workaround that needs no toggle: after launch, open Settings > Connections > SSH and wait about 15 seconds. The connection stays up after leaving the page.

    No SSH keys, connection definitions or persisted app state were modified. Hostnames, addresses and identifiers are omitted.

  6. diwu-sf commented on Nov 10, 2026

    @diwu-sf

    This is also broken for my entire team because we do all of our development remotely in dev-vms

    App version 26.1103.60933 is also buggy, same symptoms

  7. kendalleasterly commented on Nov 11, 2026

    @kendalleasterly

    Update, November 11: SSH startup auto-connect is working for me now on desktop app 26.1106.51428 (build 26605).

    Same setup as my earlier report: MacBook Pro on macOS 27.0.1 (26A434), arm64, connecting over SSH/Tailscale to an Asahi Linux host. The local app-server now reports 0.167.0-alpha.4.1; the remote app-server still reports 0.167.0.

    Two consecutive launch logs show the SSH host connecting shortly after startup:

    Launch (UTC, November 11) SSH connected (UTC) Time from launch
    16:16:43.568 16:16:50.113 ~6.5 seconds
    16:17:26.954 16:17:32.855 ~5.9 seconds

    Neither launch records a connection-toggle event for that host. I no longer need the repeated manual re-enable workaround.

    The startup logs now report remote_project_connection_restore_completed, replacing the earlier remote_project_connection_restore_skipped reason=no_remote_projects marker. One detail that may help with verification: the initial refresh still reports autoConnectConnectionCount=0, but a follow-up refresh about 0.4–0.5 seconds later reports autoConnectConnectionCount=1, and the SSH connection then starts and reaches connected. So the initial zero count alone does not indicate failure on this build.

    My earlier checks reproduced the problem on builds 25241 and 25679. This confirms it is working for my setup on build 26605; I have not established the first fixed release or tested an extended sleep/overnight cycle yet.

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

    appbugremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions