Skip to content

Codex app crashes on stale discovered SSH host after ~/.ssh/config is emptied or host entry is removed #18974

Closed as duplicate

Description

@cfxcode

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

26.417.41555 (1858)

What subscription do you have?

Pro (5x)

What platform is your computer?

Darwin 25.4.0 arm64 arm

What issue are you seeing?

Codex App crashes when a previously discovered SSH host is removed from ~/.ssh/config.

I was not using a Codex-managed connection that I added manually in the app. Instead, Codex App automatically discovered an SSH host from my ~/.ssh/config.

After that host had been discovered by the app, I removed its entry from ~/.ssh/config. Codex SSH discovery then correctly reported zero aliases, but the app still tried to render the previously discovered host: remote-ssh-discovered:lookme-server.

Instead of gracefully removing or invalidating that stale discovered host, the app hit an error boundary and showed a generic error screen.

Relevant log excerpts:

  • [remote-connections/discovery] discovery_completed collectedAliasCount=0 collectedAliases=[]
  • Failed to load Windows sandbox mode error="Error: No AppServerRequestClient registered for hostId: remote-ssh-discovered:lookme-server"
  • Failed to load config errorMessage="No AppServerManager registered for hostId: remote-ssh-discovered:lookme-server"

Workaround: restoring a valid SSH host entry in ~/.ssh/config made the app behave normally again.

What steps can reproduce the bug?

  1. Add a valid SSH host entry to ~/.ssh/config.

  2. Launch Codex App and let it discover that SSH host automatically.

  3. Open or select that discovered SSH host in Codex App.

  4. Remove that host entry from ~/.ssh/config.

  5. Refresh or restart Codex App.

  6. Observe that SSH discovery reports zero aliases, but the app still tries to use the previously discovered host.

  7. The app then fails with errors like:

    • No AppServerRequestClient registered for hostId: remote-ssh-discovered:lookme-server
    • No AppServerManager registered for hostId: remote-ssh-discovered:lookme-server
  8. The UI falls into an error state instead of gracefully invalidating the stale discovered host.

What is the expected behavior?

If a previously discovered SSH host that was auto-discovered from ~/.ssh/config is later removed from ~/.ssh/config, Codex App should gracefully reconcile that stale discovered host out of the UI/app state.

Expected behavior would be one of:

  • remove the stale discovered host from the remote connections list
  • mark it as unavailable or invalid
  • show a recoverable error message telling the user that the SSH host no longer exists in ~/.ssh/config

The app should not try to render a stale discovered host that no longer has a registered AppServerManager / AppServerRequestClient, and it should not fall into an error boundary or show a generic crash screen.

Additional information

This appears to be a stale discovered-host state reconciliation issue rather than a general SSH connectivity failure.

Log:

2026-04-22T09:51:47.979Z info [remote-connections/discovery] discovery_started entrypointPath=/Users/my_user_name/.ssh/config excludedAliasCount=0
2026-04-22T09:51:47.981Z info [remote-connections/discovery] discovery_completed collectedAliasCount=0 collectedAliases=[] dedupedConnectionCount=0 droppedAliasCount=0 entrypointPath=/Users/my_user_name/.ssh/config excludedAliasCount=0 filteredAliases=[] resolvedConnectionCount=0

2026-04-22T09:52:20.102Z error [electron-message-handler] Failed to load Windows sandbox mode error="Error: No AppServerRequestClient registered for hostId: remote-ssh-discovered:lookme-server"
2026-04-22T09:52:20.104Z error [electron-message-handler] Failed to load config errorMessage="No AppServerManager registered for hostId: remote-ssh-discovered:lookme-server" errorName=Error
2026-04-22T09:52:20.200Z error [electron-message-handler] error boundary ... errorMessage="No AppServerManager registered for hostId: remote-ssh-discovered:lookme-server"

Activity

  1. added
    appIssues related to the Codex desktop app
    on Apr 22, 2026
  2. added
    bugSomething isn't working
    app-serverIssues involving app server protocol or interfaces
    on Apr 22, 2026
  3. github-actions commented on Apr 22, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. etraut-openai commented on Oct 13, 2026

    @etraut-openai
    Contributor

    (response from codex)

    Thanks for the precise repro. Closing as a duplicate of #18556: both reports restore a stale remote-ssh-discovered host and fail with “No AppServerManager registered for hostId”. Your example of removing the host entry from ~/.ssh/config is a useful trigger to include in that investigation. Please follow #18556; this is not a claim the bug is fixed.

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

    appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions