mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-12-15 00:26:23 +00:00
Update AppImage
This commit is contained in:
@@ -43,6 +43,17 @@ export function ScriptTerminalModal({
|
||||
const [interactionInput, setInteractionInput] = useState("")
|
||||
const terminalRef = useRef<any>(null)
|
||||
|
||||
useEffect(() => {
|
||||
if (open) {
|
||||
console.log("[v0] ScriptTerminalModal opened with:", {
|
||||
scriptPath,
|
||||
scriptName,
|
||||
params,
|
||||
sessionId,
|
||||
})
|
||||
}
|
||||
}, [open, scriptPath, scriptName, params, sessionId])
|
||||
|
||||
useEffect(() => {
|
||||
if (!open) return
|
||||
|
||||
@@ -63,6 +74,13 @@ export function ScriptTerminalModal({
|
||||
return `${wsProtocol}//${hostname}:${API_PORT}/ws/script/${sessionId}`
|
||||
}
|
||||
|
||||
const wsUrl = getScriptWebSocketUrl()
|
||||
console.log("[v0] ScriptTerminalModal WebSocket URL:", wsUrl)
|
||||
console.log("[v0] ScriptTerminalModal initMessage:", {
|
||||
script_path: scriptPath,
|
||||
params: params,
|
||||
})
|
||||
|
||||
const handleInteractionResponse = (value: string) => {
|
||||
if (!terminalRef.current || !currentInteraction) return
|
||||
|
||||
@@ -109,7 +127,7 @@ export function ScriptTerminalModal({
|
||||
<div className="flex-1 overflow-hidden">
|
||||
<TerminalPanel
|
||||
ref={terminalRef}
|
||||
websocketUrl={getScriptWebSocketUrl()}
|
||||
websocketUrl={wsUrl}
|
||||
initMessage={{
|
||||
script_path: scriptPath,
|
||||
params: params,
|
||||
|
||||
Reference in New Issue
Block a user