The issue was that switchToTerminal() was not being awaited, so launchCommand() was called while switchToTerminal() was still executing. This caused a race condition where the WebSocket closed before the command could be sent. By awaiting switchToTerminal(), we ensure the terminal is fully switched before attempting to send any commands.
7df381ff41
·
2026-01-19 19:28:21 +00:00
History