We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e287d2 commit acf1bbeCopy full SHA for acf1bbe
1 file changed
src/renderer/utils/worktreeSession.ts
@@ -74,7 +74,8 @@ function resolveWorktreeAutoRunPath(
74
if (!isAbsolute) return parentAutoRunPath;
75
76
if (isPathUnderRoot(parentAutoRunPath, parentCwd)) {
77
- const normalizedParentCwd = normSep(parentCwd);
+ // Strip trailing slash for consistent slicing
78
+ const normalizedParentCwd = normSep(parentCwd).replace(/\/$/, '');
79
const normalized = normSep(parentAutoRunPath);
80
const relativePart = normalized.slice(normalizedParentCwd.length);
81
const result = normSep(worktreeCwd) + relativePart;
0 commit comments