Merge pull request #133 from WolCarlos/main

Fix command escaping in claude-cli.js
This commit is contained in:
viper151
2025-08-01 22:29:15 +02:00
committed by GitHub

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)
@@ -380,4 +380,4 @@ function abortClaudeSession(sessionId) {
export {
spawnClaude,
abortClaudeSession
};
};