mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-05 07:37:50 -07:00
feat(workspaces): implement Hub auto-cleanup and connection heartbeat
This commit is contained in:
@@ -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})...`));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user