fix(desktop): never spawn SSH dashboards just to list Bot Mode agents

A leftover sshConnections key made roster polling call
ensureRegistryBackend for every SSH source every ~5s. That spawned
remote dashboards, the mux died, and the renderer hit hermes:api
ECONNRESET / liveness-probe drops.

SSH inventory stays on the cached ls path only. Clicking a bot still
dials that one source.
This commit is contained in:
Al Zilla
2026-08-17 13:32:39 -06:00
committed by Teknium
parent 4afe08f494
commit c2c3058eca

View File

@@ -12552,10 +12552,11 @@ async function enumerateRegistryAgentSources(registry = readDesktopConnectionsRe
let raw: { connection: typeof connection; error?: string; profiles: null | string[] }
try {
if (
connection.kind === 'ssh' &&
![...sshConnections.keys()].some(scope => String(scope).startsWith(backendScopePrefix(connection.id)))
) {
// SSH roster listing must never spawn a dashboard. A stale
// sshConnections key used to fall into ensureRegistryBackend and
// respawn Spark/Mini every Bot Mode poll (~5s), then the mux died
// (ECONNRESET / liveness probe drop).
if (connection.kind === 'ssh') {
await probeSshProfileInventory(connection)
raw = { connection, profiles: null, error: 'connect-on-demand' }
} else {