#2268·LifeOS

PromptProcessing: findSessionJsonl searches LIFEOS/projects, so session names never reach the transcript

Author: alessandro-estate-guruCreated Sep 30, 2026Updated Sep 30, 2026

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

  1. Fresh 7.40.4 install, start a session so a transcript exists.
  2. ls ~/.claude/LIFEOS/projects gives "No such file or directory".
  3. ls ~/.claude/projects shows 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.