fix: Ensure projectRoot is a string (potential WSL fix) (#892)

* ensure projectRoot is a string

* add changeset
This commit is contained in:
Joe Danziger
2025-07-01 04:55:48 -04:00
committed by GitHub
parent f081bba83c
commit 56a415ef79
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"task-master-ai": patch
---
Ensure projectRoot is a string (potential WSL fix)

View File

@@ -25,6 +25,9 @@ import { getLoggerOrDefault } from './logger-utils.js';
export function normalizeProjectRoot(projectRoot) {
if (!projectRoot) return projectRoot;
// Ensure it's a string
projectRoot = String(projectRoot);
// Split the path into segments
const segments = projectRoot.split(path.sep);