feat(workspaces): implement Hub auto-cleanup and connection heartbeat

This commit is contained in:
mkorwel
2026-03-19 09:50:43 -07:00
parent c368e513b0
commit 5647fb09ae
7 changed files with 140 additions and 7 deletions
@@ -130,7 +130,14 @@ export async function connectToWorkspace(args: ArgumentsCamelCase<ConnectArgs>):
}
}
// 3. Connect via SSH
// 3. Notify Hub of connection (refresh TTL)
try {
await client.notifyConnect(readyWs.id);
} catch (err) {
debugLogger.warn(`[Connect] Failed to notify Hub of connection:`, err);
}
// 4. Connect via SSH
// eslint-disable-next-line no-console
console.log(chalk.green(`🚀 Teleporting to ${instanceName} (${zone})...`));