From 990ea80edd4d85375e3bd52b6d0019678e405cb0 Mon Sep 17 00:00:00 2001 From: uroma Date: Mon, 19 Jan 2026 19:39:14 +0000 Subject: [PATCH] test: change command to simple echo for debugging Changed from 'claude --dangerously-skip-permissions\n' to 'echo "WebSocket test"\n' to test if the WebSocket closure issue is related to the command itself. This will help determine if: 1. The issue is with the command length/format 2. The issue is with WebSocket data transmission in general 3. The PTY is handling the command correctly --- public/claude-ide/terminal.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public/claude-ide/terminal.js b/public/claude-ide/terminal.js index 2b8ff915..808ba9d9 100644 --- a/public/claude-ide/terminal.js +++ b/public/claude-ide/terminal.js @@ -282,10 +282,9 @@ class TerminalManager { // Handle terminal type specific initialization if (selectedTerminalType === 'claude-cli') { this.debugLog('CMD', `Claude Code CLI terminal selected, launching command...`); - // Launch Claude CLI with skip permissions flag - // Note: Keep mode as 'mixed' since we're not attaching to a session - // connectTerminal now waits for 'ready' message, so PTY is definitely ready - await this.launchCommand(terminalId, 'claude --dangerously-skip-permissions\n'); + // TEMPORARY: Test with simple echo command first + // TODO: Change back to 'claude --dangerously-skip-permissions\n' after testing + await this.launchCommand(terminalId, 'echo "WebSocket test"\n'); if (!silent) { showToast('Claude Code CLI terminal created', 'success');