Merge branch 'main' into fix/websocket-proxy-config

This commit is contained in:
viper151
2025-08-06 18:17:54 +02:00
committed by GitHub
2 changed files with 4 additions and 9 deletions

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
};
};

View File

@@ -53,13 +53,8 @@ async function generateDisplayName(projectName, actualProjectDir = null) {
// If it starts with /, it's an absolute path
if (projectPath.startsWith('/')) {
const parts = projectPath.split('/').filter(Boolean);
if (parts.length > 3) {
// Show last 2 folders with ellipsis: "...projects/myapp"
return `.../${parts.slice(-2).join('/')}`;
} else {
// Show full path if short: "/home/user"
return projectPath;
}
// Return only the last folder name
return parts[parts.length - 1] || projectPath;
}
return projectPath;