Bug Fix
Fixed path format mismatch causing folder CLAUDE.md files to show "No recent activity" (#794) - Thanks @bigph00t!
The folder-level CLAUDE.md generation was failing to find observations due to a path format mismatch between how API queries used absolute paths and how the database stored relative paths. The isDirectChild() function's simple prefix match always returned false in these cases.
Root cause: PR #809 (v9.0.9) only masked this bug by skipping file creation when "no activity" was detected. Since ALL folders were affected, this prevented file creation entirely. This PR provides the actual fix.
Changes:
- Added new shared module
src/shared/path-utils.tswith robust path normalization and matching utilities - Updated
SessionSearch.ts,regenerate-claude-md.ts, andclaude-md-utils.tsto use shared path utilities - Added comprehensive test coverage (61 new tests) for path matching edge cases
🤖 Generated with Claude Code