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
categorize_command sends 21 filtering commands to other in the ecosystem mix; nothing ties its match to Commands #4428
categorize_command (src/core/tracking.rs) buckets each telemetry row by its second word through a hand-kept match. #4316 (uv) and #4023 (psql, mysql) are two instances of the same gap: a command gets a filter and a Commands variant, nobody adds it to the match, and its rows land in other.
On develop a4f444e with #4328 merged, comparing rtk --help against the match arms, these filtering commands still reach _ => "other":
(Meta commands such as gain, init and config are left out of the list.)
RUST_HANDLED_COMMANDS in src/core/toml_filter.rs has the same shape and has drifted from the clap enum too (#3402).
Fix
Add the missing arms (new php and jvm buckets where none fits), and add a test that walks the Commands subcommand names from clap (Cli::command().get_subcommands()) and fails when a filtering command is uncategorized, with an explicit allow-list for meta commands. Then the next new command fails the test instead of silently reporting as other.
categorize_command in src/core/tracking.rs miscategorizes 21 filtering commands as 'other'; add missing match arms plus a clap-driven test to prevent recurrence.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
src/core/tracking.rs
src/core/toml_filter.rs
Suggested Actions
Add missing match arms in src/core/tracking.rs for js/git/cloud/php/jvm/search commands
Add a test walking Cli::command().get_subcommands() with an allow-list for meta commands
Activity
rtk-wshm-sync-bot commentedon Oct 3, 2026
🔍 Automated Triage
bugmediumSummary
categorize_command in src/core/tracking.rs miscategorizes 21 filtering commands as 'other'; add missing match arms plus a clap-driven test to prevent recurrence.
📁 Relevant files
src/core/tracking.rssrc/core/toml_filter.rsSuggested Actions
gradle,dotnet-buildanduv-syncfilters can never activate — andrtk verifyreports them green because the test harness never exercisesmatch_command#3402categorize_commandhas nouvarm, so everyrtk uv …row counts asotherin the ecosystem mix #4316 and categorize_command buckets psql (and mysql) as "other" instead of "cloud" in rtk gain #4023, which reported the same categorize_command gapTriaged automatically by wshm · This is an automated analysis, not a human review.
nightcityblade commentedon Oct 3, 2026
Hi, I'd like to work on this. I'll submit a PR shortly.