#1020 record impossible on Windows: SSH agent client is a stub for non-unix

Opened by kostafey on Sep 29, 2026, 5:51 PM
Approve the patches, then land them on main with:
// kostafey on Sep 29, 2026, 5:51 PM

On Windows, pijul record (1.0.0-beta.24) always fails:

Error: SSH agent error: Agent failure

Signing goes through thrussh_keys::agent::client::AgentClient::connect_env(), which is hard-coded to fail on non-unix platforms (thrussh-keys-0.44.0/src/agent/client.rs:59):

  #[cfg(not(unix))]
  impl AgentClient<tokio::net::TcpStream> {
      pub async fn connect_env() -> Result<Self, Error> {
          Err(Error::AgentFailure)
      }
  }

Since the new identity model has no on-disk keys, nothing can be recorded on Windows, even in a purely local repository. Running the OpenSSH agent and adding a key with ssh-add doesn’t help.

Possible fix: connect to the Windows OpenSSH agent via the named pipe \\.\pipe\openssh-ssh-agent, or switch to an SSH agent client that supports Windows (e.g. russh-keys / ssh-agent-lib).