Update AppImage

This commit is contained in:
MacRimi
2025-12-06 19:43:41 +01:00
parent 5191edfc0c
commit 8c623adad8
2 changed files with 12 additions and 0 deletions

View File

@@ -225,6 +225,12 @@ export function ScriptTerminalModal({
}} }}
onWebInteraction={handleWebInteraction} onWebInteraction={handleWebInteraction}
onWebSocketCreated={handleWebSocketCreated} onWebSocketCreated={handleWebSocketCreated}
onTerminalOutput={() => {
setIsWaitingNextInteraction(false)
if (waitingTimeoutRef.current) {
clearTimeout(waitingTimeoutRef.current)
}
}}
isScriptModal={true} isScriptModal={true}
/> />

View File

@@ -29,6 +29,7 @@ type TerminalPanelProps = {
initMessage?: Record<string, any> initMessage?: Record<string, any>
onWebInteraction?: (interaction: any) => void onWebInteraction?: (interaction: any) => void
onWebSocketCreated?: (ws: WebSocket) => void onWebSocketCreated?: (ws: WebSocket) => void
onTerminalOutput?: () => void
isScriptModal?: boolean isScriptModal?: boolean
} }
@@ -142,6 +143,7 @@ export function TerminalPanel({
initMessage, initMessage,
onWebInteraction, onWebInteraction,
onWebSocketCreated, onWebSocketCreated,
onTerminalOutput,
isScriptModal = false, isScriptModal = false,
}: TerminalPanelProps) { }: TerminalPanelProps) {
const [terminals, setTerminals] = useState<TerminalInstance[]>([]) const [terminals, setTerminals] = useState<TerminalInstance[]>([])
@@ -460,6 +462,10 @@ export function TerminalPanel({
// Not JSON, it's regular terminal output // Not JSON, it's regular terminal output
} }
if (onTerminalOutput) {
onTerminalOutput()
}
term.write(event.data) term.write(event.data)
} }