Skip to content

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

Open

Description

@FlorianBruniaux

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).

Activity

  1. added
    enhancement
    on Mar 28, 2026
  2. added
    effort-small
    good first issue
    on Apr 4, 2026
  3. pszymkowiak commented on Apr 4, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    ✨ Category feature
    🟡 Priority medium
    🎯 Confidence 87%

    Summary

    Enhance discover system to classify passthrough git/cargo/pnpm subcommands correctly instead of reporting them as unhandled; fix is scoped to rules.rs and registry.rs and already has an associated PR (#889).

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

    📁 Relevant files
    • src/discover/rules.rs
    • src/discover/registry.rs

    Triaged automatically by wshm · This is an automated analysis, not a human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clieffort-smallenhancementgood first issuepriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions