Skip to content

discover/learn scan 0 sessions without --all, even from the matching project cwd #2177

@jengchakhrit-ck

Description

@jengchakhrit-ck

rtk v0.37.2, macOS (Apple Silicon, homebrew)

rtk discover and rtk learn report zero sessions when run without --all, even from a directory whose Claude Code history clearly exists.

Repro

From a project dir /path/to/proj (CC transcripts present at ~/.claude/projects/-path-to-proj/, 1266 *.jsonl in the last 30d):

$ rtk discover
RTK Discover -- Savings Opportunities
Scanned: 0 sessions (last 30 days), 0 Bash commands
No missed savings found. RTK usage looks good!

$ rtk learn
No Claude Code sessions found in the last 30 days.

$ rtk discover --all
Scanned: 1266 sessions (last 30 days), 56233 Bash commands   # data is found fine

rtk session (same underlying data) works without --all.

Impact

The no-arg form silently scans nothing and prints "usage looks good!" / "no sessions found" — a false negative that hides real missed-savings and disables the learn loop for anyone who doesn't know to pass --all.

Expected

Bare discover/learn should resolve the current project like session does, or the default should be --all.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions