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}
onWebSocketCreated={handleWebSocketCreated}
onTerminalOutput={() => {
setIsWaitingNextInteraction(false)
if (waitingTimeoutRef.current) {
clearTimeout(waitingTimeoutRef.current)
}
}}
isScriptModal={true}
/>

View File

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