Files
ruflo/v3/@claude-flow
Dragan Spiridonov bc249a0a50 fix(helpers): check session dir containment before creating it
start() created SESSION_DIR (mkdirSync / ensureDir) before checking that it
resolves inside the project, so a symlinked .claude-flow still got an empty
sessions/ directory created at the symlink target. assertSessionDirContained()
now resolves the deepest existing part of the path (lstat, so a symlink
counts) and start() calls it before creating anything. Applied to all five
session helper variants.

Test: session-helper-trust.test.ts gains a symlinked-.claude-flow case per
variant (5 cases, all fail without this change).
2026-10-10 16:51:20 +02:00
..
…