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:
@@ -282,10 +282,9 @@ class TerminalManager {
|
|||||||
// Handle terminal type specific initialization
|
// Handle terminal type specific initialization
|
||||||
if (selectedTerminalType === 'claude-cli') {
|
if (selectedTerminalType === 'claude-cli') {
|
||||||
this.debugLog('CMD', `Claude Code CLI terminal selected, launching command...`);
|
this.debugLog('CMD', `Claude Code CLI terminal selected, launching command...`);
|
||||||
// Launch Claude CLI with skip permissions flag
|
// TEMPORARY: Test with simple echo command first
|
||||||
// Note: Keep mode as 'mixed' since we're not attaching to a session
|
// TODO: Change back to 'claude --dangerously-skip-permissions\n' after testing
|
||||||
// connectTerminal now waits for 'ready' message, so PTY is definitely ready
|
await this.launchCommand(terminalId, 'echo "WebSocket test"\n');
|
||||||
await this.launchCommand(terminalId, 'claude --dangerously-skip-permissions\n');
|
|
||||||
|
|
||||||
if (!silent) {
|
if (!silent) {
|
||||||
showToast('Claude Code CLI terminal created', 'success');
|
showToast('Claude Code CLI terminal created', 'success');
|
||||||
|
|||||||
Reference in New Issue
Block a user