Repository navigation
fix(learn): name the scan scope in the zero-session message - #4329
Open
amandeavor wants to merge 1 commit into
Open
amandeavor wants to merge 1 commit into
amandeavor wants to merge 1 commit into
Conversation
📊 Automated PR Analysis
SummaryFixes the zero-session message for Review Checklist
Linked issues: #4314 Analyzed automatically by wshm · This is an automated analysis, not a human review. |
amandeavor
force-pushed
the
fix/learn-zero-session-scope
branch
3 times, most recently
from
October 23, 2026 15:31
2dcf44a to
afa650f
Compare
learn defaulted every empty scan to "No Claude Code sessions found in the last N days", even when the miss was a cwd or -p filter. discover already carries ScanScope after rtk-ai#3374; reuse that enum via a shared zero_session_message helper and print the matching hint with `rtk learn --all` for the two narrowed scopes. Fixes rtk-ai#4314
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ScanScopeinrtk learnthe same wayrtk discoverdoes after fix(discover): distinguish zero-session scans #3374.zero_session_messagehelper so narrowed scopes name the filter or encoded cwd and point atrtk learn --all.--allempty-scan wording (any project / no--allhint).Fixes #4314
Test plan
cargo test --bin rtk zero_session(Rust 1.91) — existing discover zero-session tests plus helper coverage for thelearncommand namecargo fmt --all && cargo clippy --all-targets && cargo test