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
learn: zero-session message blames the time window whatever the scope #4314
rtk learn scopes to the current project by default, exactly like rtk discover (src/learn/mod.rs, "same logic as discover"). When that scope matches no transcript directory it prints:
No Claude Code sessions found in the last 30 days.
for all three scopes (default cwd, -p <filter>, --all). The message names the one cause that is usually not the cause: from a directory Claude Code has never run in, the fix is --all or -p, and nothing in the output says so. After #3374, discover explains its scope in the same situation:
No sessions found for the current project (`-home-user-proj`) in the last 30 days. Try `rtk discover --all` to scan every project.
so the two commands now give different explanations for the same empty result on the same machine.
Expected: learn carries the scope like discover does (ScanScope in src/discover/report.rs after #3374) and prints the matching line: the filter or encoded directory name and the window, plus the --all hint for the two narrowed scopes.
Found while reviewing #3374; related to #2177 (matcher) and #3315 (discover's message).
Activity
rtk-wshm-sync-bot commentedon Sep 27, 2026
🔍 Automated Triage
buglowSummary
rtk learnprints a generic time-window message on zero sessions instead ofdiscover's scope-aware message with an--allhint📁 Relevant files
src/learn/mod.rssrc/discover/report.rsSuggested Actions
ScanScopefrom src/discover/report.rs in src/learn/mod.rs to build the same message-p/--allscopesTriaged automatically by wshm · This is an automated analysis, not a human review.
fix(learn): name the scan scope in the zero-session message
fix(learn): name the scan scope in the zero-session message
fix(learn): name the scan scope in the zero-session message