| … | … | @@ -17,13 +18,21 @@ function logPathHydrationWarning(message: string, error?: unknown): void { | |
| 24 | - | shellPath = readPathFromLoginShell(shell); | |
| 29 | + | const shellEnvironment = readShellEnvironment(shell, ["PATH", "SSH_AUTH_SOCK"]); | |
| 30 | + | shellPath = shellEnvironment.PATH; | |
| 31 | + | if (!env.SSH_AUTH_SOCK && shellEnvironment.SSH_AUTH_SOCK) { | |
🟠 High src/os-jank.ts:31
A fallback shell's SSH_AUTH_SOCK is committed even when that shell provides no PATH, so a later shell's selected PATH can be paired with the earlier shell's stale agent socket. Only copy SSH_AUTH_SOCK when the candidate also provides the PATH that causes it to be accepted.
No longer relevant as of 863f077c23fdd9a838e6bf46b9145035e864af4c
Fixed in 863f077c2: the agent socket now comes from the accepted shell, with coverage for a preceding candidate that has no PATH.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.