mirror of
https://github.com/siteboon/claudecodeui.git
synced 2025-12-12 21:29:42 +00:00
Merge branch 'main' into fix/websocket-proxy-config
This commit is contained in:
@@ -23,7 +23,7 @@ async function spawnClaude(command, options = {}, ws) {
|
|||||||
|
|
||||||
// Add print flag with command if we have a command
|
// Add print flag with command if we have a command
|
||||||
if (command && command.trim()) {
|
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)
|
// Use cwd (actual project directory) instead of projectPath (Claude's metadata directory)
|
||||||
|
|||||||
@@ -53,13 +53,8 @@ async function generateDisplayName(projectName, actualProjectDir = null) {
|
|||||||
// If it starts with /, it's an absolute path
|
// If it starts with /, it's an absolute path
|
||||||
if (projectPath.startsWith('/')) {
|
if (projectPath.startsWith('/')) {
|
||||||
const parts = projectPath.split('/').filter(Boolean);
|
const parts = projectPath.split('/').filter(Boolean);
|
||||||
if (parts.length > 3) {
|
// Return only the last folder name
|
||||||
// Show last 2 folders with ellipsis: "...projects/myapp"
|
return parts[parts.length - 1] || projectPath;
|
||||||
return `.../${parts.slice(-2).join('/')}`;
|
|
||||||
} else {
|
|
||||||
// Show full path if short: "/home/user"
|
|
||||||
return projectPath;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return projectPath;
|
return projectPath;
|
||||||
|
|||||||
Reference in New Issue
Block a user