Agents Window SSH fails with GlassWorkbench classList error on macOS

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The Cursor Agents Window shows “Connection Failed” while initializing an SSH connection to a Linux host. Five attempts produced the same local renderer startup exception. OpenSSH public-key authentication and the classic Cursor Editor Window both connected successfully to the same host.

Steps to Reproduce

  1. Open the Cursor Agents Window on macOS.
  2. Choose Connect via SSH and select a configured Linux SSH host that accepts public-key authentication.
  3. Click Connect. The Agents Window reports “Connection Failed” while initializing.
  4. Open the same host using Remote SSH in a classic Editor Window. The remote workspace opens successfully.

Expected Behavior

The Agents Window should initialize and open the SSH workspace when connecting to the same host that works in the classic Editor Window.

Operating System

MacOS

Version Information

Cursor 3.31.15 (arm64), commit 3eb8c13390837371c7c2f2013dc57fdbc802c750; macOS 15.6.1; anysphere.remote-ssh 1.1.19; Linux remote.

Additional Information

Relevant local renderer.log messages from a failed attempt, in order:

[error] GlassWorkbench startup failed Cannot read properties of undefined (reading 'classList')
[warning] [SearchService] Extension activation timed out after 5000ms
[warning] [SearchService] Extension registration timed out after 5000ms
[warning] No search provider registered for scheme: vscode-remote, waiting

The successful Editor Window run logged “Resolved exec server. Transport: socks” and established SSH forwarding. The renderer log for the failing run contains the exception message without a stack trace.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @wang_bb, this one is on the Agents Window side, not your SSH setup or the host. On macOS, opening a new workspace can fail with exactly that error while a small secondary Cursor window is still open, such as Enable Computer Use or About Cursor, and the SSH connect then shows Connection Failed.

Could you try this:

  1. Look for an open Enable Computer Use or About Cursor window (it can sit behind other windows) and close it. If you can’t find one, quit Cursor completely with Cmd+Q and reopen it.
  2. In the Agents Window, connect to the same SSH host again.

Let me know whether it connects after that. I’ve passed your report to the team either way, and the Editor Window is fine to use for that host in the meantime.