diff --git a/services/terminal-service.js b/services/terminal-service.js index 014f7efb..dfd92ed6 100644 --- a/services/terminal-service.js +++ b/services/terminal-service.js @@ -109,6 +109,12 @@ class TerminalService { console.log(`[TerminalService] WebSocket connected for terminal ${terminalId}`); + // Send ready message to client to indicate PTY is ready for input + ws.send(JSON.stringify({ + type: 'ready', + terminalId: terminalId + })); + // Handle incoming messages from client (user input) ws.on('message', (data) => { try {