rtk-ai/rtk

feat(discover): track passthrough git/cargo/pnpm subcommands

Open

#888 aperta il 28 mar 2026

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Rust (2914 fork)batch import
area:clieffort-smallenhancementgood first issuepriority:medium

Metriche repository

Star
 (48.085 star)
Metriche merge PR
 (Merge medio 11g 1h) (45 PR mergiate in 30 g)

Descrizione

Problem

rtk discover --all reports these commands as TOP UNHANDLED COMMANDS:

  • git checkout (493 occurrences)
  • git merge (154)
  • git rebase (137)
  • pnpm build (171)
  • pnpm exec (173)
  • cargo run (78)
  • cargo publish (71)

These commands already work via passthrough (GitCommands::Other, CargoCommands::Other, PnpmCommands::Other), but the discover regex patterns in src/discover/rules.rs don't include them. They show up as unhandled instead of "already handled via passthrough".

Fix

Add the missing subcommands to the PATTERNS regex + mark them as RtkStatus::Passthrough in subcmd_status.

Files: src/discover/rules.rs + src/discover/registry.rs (tests)

Impact

1277 commands correctly classified. Zero filtering changes, zero risk.

Status

Fixed in branch fix/discover-passthrough-coverage (PR incoming).

Guida contributor