Skip to content

ccusage returns "Unknown Project" for all sessions, blocking receipt generation #11

Description

@kingdomwhy-maker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions