fix(ssh): fix windows openssh agent detection logic (#10954)
On Windows, checking for the existence of the OpenSSH agent named pipe (`\\.\pipe\openssh-ssh-agent`) can throw an `EBUSY` error if the agent is running and the pipe is in use. Previously, this error was caught generically and treated as the pipe not existing, causing auto-detection to fail even when the agent was active. This change updates the detection logic to explicitly catch `EBUSY` errors from `fs.stat` and treat them as a positive signal that the pipe exists.
A
Andy_Allan committed
5c6008deacd3b1fcd12d0a78f5e645db43beec89
Parent: 315083d
Committed by GitHub <noreply@github.com>
on 1/3/2026, 2:43:50 PM