Update claude-cli.js

add "``"
This commit is contained in:
WolCarlos
2025-07-31 22:19:55 +02:00
committed by GitHub
parent 952aeab70a
commit 2d912eeb64

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.replace(/"/g, '\\"')}");
args.push('--print', `"${command.replace(/"/g, '\\"')}"`);
}
// Use cwd (actual project directory) instead of projectPath (Claude's metadata directory)