From 952aeab70a0013c6f0457fab7fc6f2970ae86a04 Mon Sep 17 00:00:00 2001 From: WolCarlos <66867852+WolCarlos@users.noreply.github.com> Date: Thu, 31 Jul 2025 16:35:09 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20bug=20-=20=E2=80=98truncated=20messages?= =?UTF-8?q?=E2=80=99=20-=20Update=20claude-cli.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I fixed the ‘truncated messages’ bug in chat (Windows 11/Chrome). --- server/claude-cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/claude-cli.js b/server/claude-cli.js index 251f047..33f5d3c 100755 --- a/server/claude-cli.js +++ b/server/claude-cli.js @@ -23,7 +23,7 @@ async function spawnClaude(command, options = {}, ws) { // Add print flag with command if we have a command if (command && command.trim()) { - args.push('--print', command); + args.push('--print', "${command.replace(/"/g, '\\"')}"); } // Use cwd (actual project directory) instead of projectPath (Claude's metadata directory) @@ -380,4 +380,4 @@ function abortClaudeSession(sessionId) { export { spawnClaude, abortClaudeSession -}; \ No newline at end of file +};