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
This commit is contained in:
uroma
2026-01-19 19:39:14 +00:00
Unverified
parent da62cac73a
commit 990ea80edd

View File

@@ -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');