You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
discover/learn scan 0 sessions without --all, even from the matching project cwd #2177
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.
discover/learn silently scan 0 sessions without --all due to broken current-project path detection; fix default to resolve cwd like session does, or fall back to --all behavior
Triaged automatically by wshm · This is an automated analysis, not a human review.
Plain rtk discover and rtk learn now find the current project's sessions without --all. Claude Code names the project folder by replacing characters such as . and _ in the path, and rtk follows that since v0.38.0 (v0.42.3 added spaces, brackets and colons); when nothing is found, the message now names the project and suggests --all. The exact path from the report is unknown, so marking this resolved-pending-close. If v0.51.0 or later still scans 0 sessions for you, please comment with your working directory and the matching folder name under ~/.claude/projects/.
Fixed in v0.38.0: rtk now encodes the project folder name the way Claude Code does (dots, underscores, and later spaces, brackets and colons), so plain rtk discover and rtk learn find the current project's sessions without --all. Running both from a project path containing a dot and an underscore now scans its sessions. If you still see 0 sessions on the latest release, please comment with your working directory and the matching folder name under ~/.claude/projects/ and we will reopen.
Activity
pszymkowiak commentedon May 31, 2026
🔍 Automated Triage
bughighSummary
discover/learn silently scan 0 sessions without --all due to broken current-project path detection; fix default to resolve cwd like
sessiondoes, or fall back to --all behaviorTriaged automatically by wshm · This is an automated analysis, not a human review.
KuSh commentedon Oct 10, 2026
Plain
rtk discoverandrtk learnnow find the current project's sessions without--all. Claude Code names the project folder by replacing characters such as.and_in the path, and rtk follows that since v0.38.0 (v0.42.3 added spaces, brackets and colons); when nothing is found, the message now names the project and suggests--all. The exact path from the report is unknown, so marking this resolved-pending-close. If v0.51.0 or later still scans 0 sessions for you, please comment with your working directory and the matching folder name under~/.claude/projects/.KuSh commentedon Oct 18, 2026
Fixed in v0.38.0: rtk now encodes the project folder name the way Claude Code does (dots, underscores, and later spaces, brackets and colons), so plain rtk discover and rtk learn find the current project's sessions without --all. Running both from a project path containing a dot and an underscore now scans its sessions. If you still see 0 sessions on the latest release, please comment with your working directory and the matching folder name under ~/.claude/projects/ and we will reopen.