PromptProcessing: findSessionJsonl searches LIFEOS/projects, so session names never reach the transcript
Version: 7.40.4
What happens
findSessionJsonl() in install/hooks/PromptProcessing.hook.ts (line 674) looks for the session transcript under paiPath('projects') and paiPath('Projects'). paiPath() joins onto getLifeosDir() (hooks/lib/paths.ts:93), so both candidates resolve to ~/.claude/LIFEOS/projects. Claude Code writes transcripts to ~/.claude/projects/<project>/<session>.jsonl, and a fresh install has no LIFEOS/projects directory.
Both candidates fail the existsSync check, the function returns null, and its two callers do nothing: getCustomTitle() (line 686) and syncNameToJsonl() (line 704). Nothing is logged, because the missing directory is a continue and the surrounding try swallows everything else.
Repro
- Fresh 7.40.4 install, start a session so a transcript exists.
ls ~/.claude/LIFEOS/projectsgives "No such file or directory".ls ~/.claude/projectsshows the transcripts.
Suggested fix
Search the Claude home rather than the LifeOS dir, for example join(getClaudeDir(), 'projects'). getClaudeDir is already exported from hooks/lib/paths.ts.
Source: danielmiessler/LifeOS