fix: sanitize session name in getWorktreesForSession function

This commit is contained in:
2026-03-20 13:17:10 +05:30
parent 49da7c4219
commit da0ed90192
+1 -1
View File
@@ -332,7 +332,7 @@ export async function getWorktreesForSession(sessionName: string): Promise<Workt
const { stdout } = await runCommand(["git", "worktree", "list", "--porcelain"]);
const worktrees: WorktreeInfo[] = [];
const sessionPath = getSessionPath(sessionName);
const sessionPath = getSessionPath(sanitizeName(sessionName));
let currentWorktree: Partial<WorktreeInfo> = {};