Fix bug - ‘truncated messages’ - Update claude-cli.js

I fixed the ‘truncated messages’ bug in chat (Windows 11/Chrome).
This commit is contained in:
WolCarlos
2025-07-31 16:35:09 +02:00
committed by GitHub
parent 6db8be5f54
commit 952aeab70a

View File

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