From 360335a608f948b0408f7fb05ddcf6e60c0969dd Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 6 Dec 2025 19:03:19 +0100 Subject: [PATCH] Update AppImage --- AppImage/components/script-terminal-modal.tsx | 46 +++++++++++++++---- AppImage/components/terminal-panel.tsx | 15 ++++++ AppImage/scripts/flask_terminal_routes.py | 2 +- 3 files changed, 52 insertions(+), 11 deletions(-) diff --git a/AppImage/components/script-terminal-modal.tsx b/AppImage/components/script-terminal-modal.tsx index 3368b38..68454b5 100644 --- a/AppImage/components/script-terminal-modal.tsx +++ b/AppImage/components/script-terminal-modal.tsx @@ -143,6 +143,13 @@ export function ScriptTerminalModal({ return } + if (value === "cancel" || value === "") { + setCurrentInteraction(null) + setInteractionInput("") + handleCloseModal() + return + } + const response = JSON.stringify({ type: "interaction_response", id: currentInteraction.id, @@ -209,11 +216,13 @@ export function ScriptTerminalModal({ {!isMobile && (
- +
)} @@ -244,6 +253,7 @@ export function ScriptTerminalModal({ className="max-w-4xl max-h-[80vh] overflow-y-auto" onInteractOutside={(e) => e.preventDefault()} onEscapeKeyDown={(e) => e.preventDefault()} + hideClose > {currentInteraction.title}
@@ -264,6 +274,13 @@ export function ScriptTerminalModal({ > No +
)} @@ -284,7 +301,7 @@ export function ScriptTerminalModal({ variant="outline" className="w-full hover:bg-red-600 hover:text-white hover:border-red-600" > - Cancel / Go Back + Cancel )} @@ -310,7 +327,7 @@ export function ScriptTerminalModal({ Submit +
+ + +
)} diff --git a/AppImage/components/terminal-panel.tsx b/AppImage/components/terminal-panel.tsx index fa61b79..0fff57f 100644 --- a/AppImage/components/terminal-panel.tsx +++ b/AppImage/components/terminal-panel.tsx @@ -676,6 +676,21 @@ export const TerminalPanel: React.FC = ({ )} + {/* Terminal Tabs */} +
+ {terminals.map((terminal) => ( + + ))} +
+ {isScriptModal && (
Connection Status diff --git a/AppImage/scripts/flask_terminal_routes.py b/AppImage/scripts/flask_terminal_routes.py index 8379220..e03a878 100644 --- a/AppImage/scripts/flask_terminal_routes.py +++ b/AppImage/scripts/flask_terminal_routes.py @@ -350,7 +350,7 @@ def script_websocket(ws, session_id): except Exception as e: pass - time.sleep(0.1) + time.sleep(0.01) except Exception as e: break