Cursor 3.26.13 — Agent Host Bridge timeout on CERN LXPLUS Remote-SSH (HPC)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I’m experiencing a persistent issue with Cursor Agent when working remotely on CERN LXPLUS (an HPC environment running Red Hat Enterprise Linux 9.8).

SSH connects successfully, and I can access my files and terminal normally. However, Cursor Agent frequently gets stuck on “Planning next moves” or “Taking longer than expected” before failing with:

Timed out waiting for the agent host bridge to register; please retry.

This happens in existing conversations, forked conversations, and completely new Agent chats. Occasionally, a simple message works, but the Agent cannot reliably execute tasks or access my research files.

SSH logs also show unusually slow port forwarding, connection timeouts, and delayed responses to simple commands.

The problem persists even after reinstalling Cursor and resetting the remote server. It appears that the Remote-SSH connection works, but the Agent Host fails to initialize or register correctly.

Steps to Reproduce

  1. Open Cursor 3.26.13 on macOS.
  2. Connect to CERN LXPLUS using Remote-SSH (lxplus.cern.ch).
  3. Authenticate using CERN password and two-factor authentication.
  4. Open the remote AFS workspace (/afs/cern.ch/user/i/username/private).
  5. Start a new Agent conversation or reopen an existing one.
  6. Ask the Agent to inspect files or perform a coding task.
  7. The Agent remains stuck on “Planning next moves” and eventually returns an Agent Host Bridge registration timeout.

Expected Behavior

Cursor Agent should initialize normally after connecting to the remote workspace, read and edit files, execute commands, and continue existing conversations without timing out.

Operating System

MacOS

Version Information

Cursor IDE: 3.26.13 (Universal)
Local OS: macOS
Remote OS: Red Hat Enterprise Linux 9.8 (Plow)
Remote SSH extension: anysphere.remote-ssh 1.1.16

For AI issues: add Request ID with privacy disabled

4c236b4c-06c5-411d-a2da-8370a0719a41
0e7369c3-81a4-4cf1-8225-34ac99bb5922
3ae6b73b-1a7f-439e-a93b-1597887df81d

Additional Information

Troubleshooting already attempted:

  • Completely reinstalled Cursor.
  • Reset/reinstalled the remote Cursor server.
  • Tested multiple LXPLUS nodes, including a direct SSH connection to a specific node.
  • Moved the remote server installation to /tmp instead of AFS.
  • Enabled remote.SSH.lockfilesInTmp.
  • Set cursorAgentHost.remoteInferenceRoute to always.
  • Disabled automatic port forwarding.
  • Reloaded Cursor and tested new and forked Agent conversations.
  • Verified that normal SSH works and that AFS is writable.
  • Confirmed sufficient available memory on LXPLUS.

None of these changes reliably resolved the issue.

CERN LXPLUS is a load-balanced HPC environment, and the Cursor server runs on a remote Linux machine.

Could this be related to the remote Agent Host architecture? If possible, I’d appreciate a workaround using the previous local-client Agent architecture, as discussed in similar HPC-related reports.

This is currently blocking my research workflow.

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the detailed report and the request ID.

In recent versions, Agent in a Remote-SSH window runs inside the Cursor server on the remote machine, not in the local app. Based on your requests, it looks like that part isn’t starting in time on LXPLUS. Agent waits about 70 seconds for it, then gives up with this error. Around the same time, the remote extension host also stopped responding several times. That’s why cursorAgentHost.remoteInferenceRoute didn’t change anything. That setting only affects how requests reach our servers, and it’s read by the same component that isn’t starting.

So this isn’t caused by your setup. It’s an issue we’re tracking for Remote-SSH on clusters where the home or project directory is on a network file system. We’ve seen similar cases with Ceph and NFS, and AFS fits that pattern too. I’ve passed your report to the team.

I can see you’ve already tried /tmp and connecting to a specific node. There’s one more workaround that helped in a similar thread:

  1. Open the specific project folder, not the whole /afs/cern.ch/user/i/username/private.
  2. Create a .cursorignore file in the workspace root and list the heavy data, results, and environment folders there. Add the same folders to files.watcherExclude and search.exclude, then run Developer: Reload Window.

If that doesn’t help, please send:

  • the output of df -T ~ ~/.cursor-server <project path> on the node you’re connecting to
  • a screenshot of Developer: Show Running Extensions from the SSH window
  • an answer to this question: does the timeout start right after connecting, or only some time after the session begins?

One more thing: two of the three request IDs came from the Agents Window on version 3.24.18, not 3.26.13. If you’re using both, please try reproducing it in the regular IDE window on 3.26.13.

If that still doesn’t help, reply here and we can look at other options.

Hi, thanks for looking into this and for the suggestions.

Unfortunately, I’m still experiencing exactly the same issue after trying the recommended workaround.

I first tried opening a smaller project directory instead of my full /afs/cern.ch/user/i/username/private workspace, but the Agent still failed with Timed out waiting for the agent host bridge to register.

Since my research involves several interconnected repositories, I also tried keeping the original private workspace open and adding a root .cursorignore file to exclude Python caches, virtual environments, and temporary files. I added corresponding exclusions to files.watcherExclude and search.exclude and tested again, but the issue persists.

I’ve also previously tried reinstalling Cursor, changing LXPLUS nodes, moving the remote server installation away from AFS, setting remote.SSH.lockfilesInTmp to true, and setting cursorAgentHost.remoteInferenceRoute to always. None of these changes have resolved the problem.

The most recent failures occurred on lxplus966, with these Request IDs:

  • e87666e2-b05d-424d-9f6e-c7f47957bbb4

  • 53ea5ff5-55a6-466c-a35c-25432b703432

The second error happened in a completely new conversation where I only asked the Agent to read the project context, without modifying files or executing any research tasks.

The SSH connection itself works, and I can access my files and terminal normally. However, the Agent consistently fails to initialize, including immediately after opening the workspace.

My home directory and project directories are on AFS, confirmed by df -T. The configured remote server installation path is currently /eos/user/i/ilimalei/cursor-server, rather than ~/.cursor-server.

At this point, I’ve tried the main workarounds discussed in the related Remote-SSH/NFS thread, but the Agent remains unusable for my research.

Could the team investigate the Agent Host or remote extension-host initialization directly? Is there any server-side or account-level workaround, such as temporarily restoring the previous local-client Agent architecture, that could help while this issue is being fixed?

I’m happy to provide further logs or diagnostics if needed. Thanks again for your help.

Hey, thanks for checking all of this and sending the new Request IDs.

Both new requests failed the same way as before. The Agent component on the LXPLUS side still never started, even a few minutes after the window opened. So this doesn’t look related to workspace size or the watcher.

One detail: both requests came from Cursor 3.24.18, not 3.26.13. It looks like after reinstalling on Mac, an older build ended up installed. Before the next test, please update Cursor with Cursor > Check for Updates or download it from Cursor · Download and confirm the version in Cursor > About Cursor.

The current install path on /eos/... may also be part of the issue. EOS, like AFS, is a network filesystem, and the Cursor server and its data are stored under that path. It also didn’t work earlier with /tmp, so it’s probably not the only cause. But one clean test would tell us a lot:

  1. Set the server install path to a folder on the node’s local disk, for example /tmp/$USER/cursor-server.
  2. Connect directly to lxplus966.cern.ch, not lxplus.cern.ch, so you always land on the same node where that folder exists.
  3. Let the server install again, open the project folder, wait about a minute, and send a short message.

If it fails again, right after the error open View > Output in the SSH window and send the contents of the Cursor Agent Host channel, and the remote extension host channel too if it’s there, plus a screenshot of Developer: Show Running Extensions. That should show whether the Agent component is crashing at startup or just hanging while waiting. We can’t see that from our side.

About switching back to the previous architecture: the Agent tools there still run through the same remote extension host on LXPLUS, so that rollback by itself probably won’t fix the issue. That’s why we first want to understand what’s blocking the remote side.

For now, you can also try Cursor CLI. It runs the Agent directly in the terminal on LXPLUS, without the remote extension host. We haven’t tested it on an AFS home directory, but it has worked on other HPC clusters:

curl https://cursor.com/install -fsS | bash

Then add ~/.local/bin to PATH and run agent from the project folder. More details: Cursor CLI | Cursor Docs

I’ve added this new data to the issue we’re tracking. Let us know how the test goes.