[Bug] Agent Window: agent host bundle is sent as 0 bytes, install fails with "tar: Error is not recoverable" (Windows10)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

In Cursor 3.32.24 on Windows 10 22H2 (build 19045), setting “Agents Window Type”
to Beta makes every SSH remote connection fail with
“Permission denied (publickey,password)”.

The transport layer connects (server banner and key exchange complete), so this
is an authentication failure, not a network failure. No password prompt is ever
shown in Beta mode.

Switching “Agents Window Type” back to Default immediately connects, with the
same ~/.ssh/config and the same Ed25519 key. The failure is 100% reproducible
and survives an application restart.

The Beta window uses the molten engine
(%APPDATA%\Cursor\molten\logs\remote-ssh<host>.log), whose log shows the same
error, while the Default (classic Remote-SSH) log shows a successful connection.

The key is Ed25519 in OpenSSH format with no passphrase. Starting the Windows
ssh-agent service and loading the key with ssh-add does not help - the engine
does not reference the Windows agent pipe \.\pipe\openssh-ssh-agent.

Steps to Reproduce

  1. Open Cursor 3.32.24 on Windows 10 22H2.
  2. Go to Settings and set “Agents Window Type” to Beta (restart if prompted).
  3. Connect to an SSH host that authenticates with an Ed25519 key
    (no password needed; the same host connects fine from Default mode
    and from the system ssh client).
  4. Observe the error: “Permission denied (publickey,password)” and
    “ didn’t accept your credentials”.
  5. Switch “Agents Window Type” back to Default and reconnect.
    The connection succeeds immediately, with no other change.

Expected Behavior

Public-key authentication should succeed in Beta mode, exactly as it does in
Default mode and with the system ssh client. The same ~/.ssh/config
(User + IdentityFile + IdentitiesOnly) and the same Ed25519 key work in
Default mode, so the credential itself is valid.

Screenshots / Screen Recordings

Cursor_Beta_SSH_BugReport_2026-12-01.txt (5.31 KB)

Operating System

Windows 10/11

Version Information

Cursor IDE 3.32.24 (stable channel)
OS: Windows 10 Pro 22H2, build 19045 (x64)
Agents Window Type: Beta

For AI issues: which model did you use?

N/A - this is an SSH connection issue, not a model issue.

For AI issues: add Request ID with privacy disabled

N/A - no AI request involved.

Additional Information

Logs

  • Failing (Beta / molten engine):
    %APPDATA%\Cursor\molten\logs\remote-ssh<host>.log
  • Working (Default / classic Remote-SSH):
    %APPDATA%\Cursor\logs<timestamp>\window*\exthost\anysphere.remote-ssh*.log

Troubleshooting already tried (none helped)

  • IdentityFile written as “~/.ssh/id_ed25519” and as an absolute Windows path
  • IdentitiesOnly yes
  • Windows ssh-agent service started and the key loaded via ssh-add
    (confirmed by “ssh-add -l” before retrying)
  • Full application restart after every change

Static check of resources\app\molten\dist\engine\engine.cjs

  • 0 occurrences of “ed25519”, “ssh-ed25519”, “curve25519”
  • 0 occurrences of “openssh-ssh-agent” (the Windows agent named pipe)
  • “SSH_AUTH_SOCK” appears only in code that forwards the agent to the remote host

Remote host: Ubuntu, OpenSSH server, publickey + password both enabled.
The same key and the same ~/.ssh/config connect successfully in Default mode,
so the credential, the server and the network path are all fine.

Suggestion: if Ed25519 keys are not supported by the Beta SSH client yet, an
explicit “unsupported key type” error would be far more actionable than
“Permission denied (publickey,password)”.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hi @n_zp, the Beta window doesn’t have its own SSH client. It runs the ssh that’s on your PATH, the same OpenSSH your terminal uses, so Ed25519 keys and the Windows ssh-agent are handled by ssh itself. That’s why you found no key code in engine.cjs.

One thing does differ on Windows: the Beta window currently runs ssh without any prompts, which is why you never get asked for a password. Prompts for passwords and passphrases there are on the way in an upcoming update. Until then, keeping Agents Window Type on Default for this host is the way to go.

That still doesn’t explain why your key is refused. Could you run this in PowerShell, with the host written exactly as it appears in the Beta window, and paste the output (mask names if you like)?

where.exe ssh; ssh -v -o BatchMode=yes -T <host> exit

It shows which ssh, user and key get used, which should tell us where the two windows differ.

Hi @Colin

Follow-up with the root cause, plus evidence from both layers.

TL;DR
The agent host bundle sent to the host is 0 bytes, so tar has nothing to
extract. SSH itself is fine.

  1. The bundle is empty (this is the bug)
    I polled ~/.grok/agent-host-daemon/daemon/.tmp-*.tgz every 20 ms while the
    install was running:

$ ls -lS /tmp/grab/
total 0
-rw-rw-r-- 1 0 Dec 1 19:25 snap-0.tgz

Only a 0-byte snapshot ever appeared, and no intermediate sizes were observed.
A real bundle would take at least a few hundred milliseconds to stream over
SSH, so partial sizes would have been caught. Nothing is being transferred.

The script’s own integrity check does not catch it: sha256 of an empty file is
always e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.
If the engine derives the expected hash from the same empty buffer, both sides
agree, and execution continues to:

tar -xozf <0-byte file>
gzip: stdin: unexpected end of file
tar: Error is not recoverable: exiting now

which is exactly the error the host reports.

  1. SSH is not the problem
    Public-key auth works and the key has pty enabled:

$ ssh -o BatchMode=yes -T exit
Authenticated to ([]:22) using “publickey”.
debug1: Remote: /home//.ssh/authorized_keys:1: key options:
agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Exit status 0

So both “key rejected” and “no PTY” are ruled out.

  1. What else is ruled out (checked on the host)
  • Ubuntu 20.04, glibc 2.31, GNU tar 1.30, gzip 1.10
  • /home has 750 GB free, inodes at 34%
  • No proxy configured
  • The 120 MB Linux runtime tarball downloads and extracts fine on the same host
  • Client: resources/app/extensions/cursor-agent-host is 57 MB / 196 files
  • Client: AppData/Roaming/Cursor/agent-harness is 28 MB, two versions present
  • https://downloads.cursor.com/agent-host-harness/channels/stable/latest.json
    returns HTTP 200
  1. Environment
  • Cursor 3.33.4, Windows 10 22H2 (build 19045), dev release track
  • Remote host: Linux x86_64

Question
Can you check whether the agent host bundle is empty in 3.32.24? The local
extension directory is complete, so this looks like a packaging or streaming
bug on the client side rather than a missing file.

Reproduction is deterministic: every retry creates a new 0-byte temp file and
fails at the same tar step.

Agent Window fails, classic IDE works - same machine, same host, same key.

IDE (Cursor.exe --classic): SSH publickey auth OK, explorer/terminal/agent
panel all functional.

Agent Window (–glass): “Grok Build couldn’t install the agent host. The host
reported tar: Error is not recoverable”. The bundle it sends is 0 bytes
(captured with a 20 ms poll; only snap-0.tgz appeared).

Reproduced on 3.32.24 and 3.33.4. Not urgent - using the classic window - but
the Agent Window is unusable on Windows. Could you check the client-side
packaging of the agent host bundle?

Hi @n_zp, you’re right that nothing gets transferred, and it is on the client side. We could reproduce it.

The Agents Window packs the agent host on the fly with Windows’ built-in tar.exe. The version that ships with Windows 10 writes to a tape device by default instead of to the pipe, so the stream comes out empty, and the checksum then matches the empty stream just as you guessed. Windows 11’s newer tar doesn’t do this, so it only shows up on Windows 10, on 3.32.24 and 3.33.4 alike. Your install is complete.

I’ve passed this on to the team. The classic window stays the reliable way to reach this host for now.

If you want to keep using the Agents Window in the meantime, this should get the install through (it did in our reproduction, but we haven’t tried it on a Windows 10 PC):

  1. In PowerShell, run:
    [Environment]::SetEnvironmentVariable("TAPE", "-", "User")
    
  2. Quit Cursor completely, then start it again from the Start menu.
  3. Connect to the host in the Agents Window again.

Let me know if that connects.

Hi @Colin thanks
Confirmed on a real Windows 10 machine - TAPE=- works.

Environment: Windows 10 22H2 (build 19045), Cursor 3.32.24 (stable), TAPE set
to “-” at user scope, Cursor started fresh from the Start menu.

The Agents Window connected and installed the agent host this time:

[info] Installing agent host eba1bfa4f2b90790-linux-x64-rb7881efc-l6
[info] Agent host installed
[info] File server started on the host’s port 36861, ready in 1.4s
[info] Connected to agent host 1.0.0 pid 3212820 in 20.7s

No “tar: Error is not recoverable”, and the 0-byte temp file is gone. So the
workaround holds outside your reproduction environment as well.

Two details that may be useful:

  • I’m on 3.32.24 with update.mode=none, so no update interfered mid-test.
  • I’ll keep TAPE=- in place until a build with the fix ships, then remove it.

Thanks again - this unblocked the Agents Window for me.

Hi @n_zp, thanks for confirming it on Windows 10, good to know it holds there too.

Leaving TAPE=- set is fine for as long as you need it. It only matters for tar commands that run without -f, so it won’t get in the way of anything else on your PC. When you want to remove it again:

[Environment]::SetEnvironmentVariable("TAPE", $null, "User")