The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(desktop): drop the fail-open branches when WebSocket is not a function
kshitijk4poor109fbe097f3f
diff --git a/apps/desktop/electron/ssh-isolated-keepalive.ts b/apps/desktop/electron/ssh-isolated-keepalive.tsindex 220d97b693a..43b8f61f04d 100644--- a/apps/desktop/electron/ssh-isolated-keepalive.ts+++ b/apps/desktop/electron/ssh-isolated-keepalive.ts@@ -8,8 +8,9 @@* `sshConnections`. Sticky spawn artifacts (owner-nonce, token file, lockfile)* are NOT liveness and must not suppress idle-exit.*- * Fail-open: if the keep-alive cannot connect, backend behavior is unchanged- * (it may still idle-exit). This module never consults nonce/lock/token files.+ * If the socket drops the registry reconnects after a delay; while it is down+ * the backend may idle-exit as before. This module never consults+ * nonce/lock/token files.*/import { buildGatewayWsUrl } from './connection-config'@@ -94,10 +95,6 @@ export function createSshIsolatedKeepaliveRegistry(options: SshIsolatedKeepalivereturn}- if (typeof WebSocketImpl !== 'function') {- return- }-entry.generation += 1const generation = entry.generationclearTimer(entry)@@ -148,10 +145,6 @@ export function createSshIsolatedKeepaliveRegistry(options: SshIsolatedKeepalivestop(scope)- if (typeof WebSocketImpl !== 'function') {- return- }-const entry: KeepaliveEntry = {generation: 0,reconnectTimer: null,