diff --git a/AppImage/components/script-terminal-modal.tsx b/AppImage/components/script-terminal-modal.tsx index 371f814..fb76571 100644 --- a/AppImage/components/script-terminal-modal.tsx +++ b/AppImage/components/script-terminal-modal.tsx @@ -23,7 +23,6 @@ interface ScriptTerminalModalProps { onClose: () => void scriptPath: string scriptTitle: string - scriptDescription: string // Added scriptDescription prop params?: Record } @@ -32,7 +31,6 @@ export function ScriptTerminalModal({ onClose, scriptPath, scriptTitle, - scriptDescription, // Added scriptDescription variable params = {}, }: ScriptTerminalModalProps) { const termRef = useRef(null) @@ -361,35 +359,6 @@ export function ScriptTerminalModal({ } }, []) - useEffect(() => { - if (!isOpen) return - - const handleVisibilityChange = () => { - if (document.hidden) { - // Enviar ping para mantener conexión activa cuando la pantalla se bloquea - if (wsRef.current && wsRef.current.readyState === WebSocket.OPEN) { - wsRef.current.send(JSON.stringify({ type: "ping" })) - } - } - } - - document.addEventListener("visibilitychange", handleVisibilityChange) - - const keepAliveInterval = setInterval(() => { - if (wsRef.current && wsRef.current.readyState === WebSocket.OPEN) { - wsRef.current.send(JSON.stringify({ type: "ping" })) - } - }, 30000) - - return () => { - document.removeEventListener("visibilitychange", handleVisibilityChange) - clearInterval(keepAliveInterval) - if (checkConnectionInterval.current) { - clearInterval(checkConnectionInterval.current) - } - } - }, [isOpen]) - const getScriptWebSocketUrl = (sid: string): string => { if (typeof window === "undefined") { return `ws://localhost:${API_PORT}/ws/script/${sid}` @@ -540,14 +509,12 @@ export function ScriptTerminalModal({ style={{ height: isMobile || isTablet ? "80vh" : `${modalHeight}px`, maxHeight: "none" }} onInteractOutside={(e) => e.preventDefault()} onEscapeKeyDown={(e) => e.preventDefault()} - hideClose={true} > {scriptTitle}

{scriptTitle}

-

{scriptDescription}

@@ -564,21 +531,6 @@ export function ScriptTerminalModal({ )} - {(isTablet || (!isMobile && !isTablet)) && ( -
- -
- )} - {(isMobile || isTablet) && (