From 7fd63d83ac536d27f6b20fdfb1bbb0a0ca7b2d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=C3=ABldrin=20Sag=C3=AB?= Date: Wed, 23 Jul 2025 17:52:48 +0200 Subject: [PATCH 1/3] fix(sidebar): display only folder name instead of full path in project list --- server/projects.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/server/projects.js b/server/projects.js index 793d07e..23ee462 100755 --- a/server/projects.js +++ b/server/projects.js @@ -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; 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 2/3] =?UTF-8?q?Fix=20bug=20-=20=E2=80=98truncated=20messag?= =?UTF-8?q?es=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 +}; From 2d912eeb64e560b030b4bbfb25521127df06b738 Mon Sep 17 00:00:00 2001 From: WolCarlos <66867852+WolCarlos@users.noreply.github.com> Date: Thu, 31 Jul 2025 22:19:55 +0200 Subject: [PATCH 3/3] Update claude-cli.js add "``" --- server/claude-cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/claude-cli.js b/server/claude-cli.js index 33f5d3c..f833550 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.replace(/"/g, '\\"')}"); + args.push('--print', `"${command.replace(/"/g, '\\"')}"`); } // Use cwd (actual project directory) instead of projectPath (Claude's metadata directory)