When cwd is a git repo inside a GSD workspace, findProjectRoot() walked up and returned the workspace parent (which also has .planning/) instead of the cwd itself. This caused all init commands to resolve project_root to the workspace root, making phase/roadmap lookups fail with "Phase not found" errors. The fix adds an early return: if startDir already contains a .planning/ directory, it is the project root — no need to walk up to a parent. Fixes #1362 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
60 KiB
60 KiB