Update setupWebSocket

This commit is contained in:
MacRimi
2026-03-16 09:20:45 +01:00
parent c1f8e7f511
commit 35eee03aa5
2 changed files with 37 additions and 6 deletions

View File

@@ -326,6 +326,15 @@ export function LxcTerminalModal({
if (lastPromptMatch) {
term.write(lastPromptMatch[0])
}
// Send an extra Enter for Alpine containers (ash shell)
// This forces the prompt to refresh properly
setTimeout(() => {
if (ws.readyState === WebSocket.OPEN) {
ws.send('\r')
}
}, 100)
return
}
}