singularity-forge/src/resources
Flux Labs 7e25e6d427 fix: prevent stale worktree cwd after milestone completion (#608) (#610)
After milestone completion and merge, the process cwd could remain
inside .gsd/worktrees/<MID>/, causing new milestone writes to land
in the wrong directory.

Three-layer fix:
1. escapeStaleWorktree() at startAuto entry — detects if base path
   is inside .gsd/worktrees/ and chdir back to project root
2. stopAuto() unconditionally restores cwd to originalBasePath,
   not just when isInAutoWorktree returns true (module state may
   have been cleared by mergeMilestoneToMain already)
3. Milestone merge error handler restores cwd on partial failure
   where mergeMilestoneToMain chdir'd but then threw

Closes #608
2026-03-16 06:58:02 -06:00
..
agents Initial commit 2026-03-10 22:28:37 -06:00
extensions fix: prevent stale worktree cwd after milestone completion (#608) (#610) 2026-03-16 06:58:02 -06:00
skills fix: add missing front matter to github-workflows skill 2026-03-14 15:24:07 -04:00
GSD-WORKFLOW.md docs: sync GSD workflow resource (#476) 2026-03-15 18:23:52 -06:00