Running on:
- macOS
- Node v25.9.0
- Claude Code latest
- ccusage@18.0.11 (confirmed latest)
- claude-receipts@latest
All sessions show "projectPath": "Unknown Project" in ccusage output, causing
claude-receipts to fail with:
"No sessions with valid project paths found. Please run this command from a SessionEnd hook."
Verified:
- ~/.claude/projects// exists with valid .jsonl files
- JSONL contains correct "cwd":"/Users/k/Projects/receipt-test" fields on multiple lines
- SessionEnd hook is installed correctly in ~/.claude/settings.json
- Problem persists whether invoked manually OR via SessionEnd hook
- Inserting a synthetic first-line entry with cwd field did not change ccusage output
Looks like ccusage's projectPath extraction logic has drifted from the current
Claude Code JSONL format.
Running on:
All sessions show
"projectPath": "Unknown Project"in ccusage output, causingclaude-receipts to fail with:
"No sessions with valid project paths found. Please run this command from a SessionEnd hook."
Verified:
Looks like ccusage's projectPath extraction logic has drifted from the current
Claude Code JSONL format.