mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
connectionCacheKey() keyed the desktop-fs cache on mode:profile:baseUrl only. Local forwarded ports are reusable across different remotes, so two remotes that map to the same 127.0.0.1:<localPort> (e.g. two SSH hosts whose tunnels land on the same local port across reconnects) collide — one host's cached directory listings and file reads get served for the other. Fold the remote host into the identity: remoteHost (user@host for SSH, the real backend host for token/oauth), with a baseUrl fallback. This is a latent bug on main for ANY two remotes sharing a forwarded port, not only SSH — but SSH mode makes it reachable in normal use. Adds vitest coverage: two SSH hosts on the same local port get distinct keys; the no-remoteHost fallback and local key are preserved. vitest deferred (no node_modules in the worktree on this host); the regression guard ships with the fix. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||