Skip to content

rtk discover: false positives for git subcommands (checkout, clone, remote) #1897

Closed as duplicate

Description

@yaco16

Problem

rtk discover reports git checkout, git clone, and git remote in its "TOP UNHANDLED COMMANDS — open an issue?" section, suggesting RTK has no support for them.

TOP UNHANDLED COMMANDS -- open an issue?
----------------------------------------------------
Command                  Count    Example
git checkout                 3    git checkout -b my-branch
git clone                    2    git clone --depth=1 https://github.com/...
git remote                   1    git remote add fork https://github.com/...

Why it's a false positive

rtk git is already a universal proxy for all git subcommands — not just the ones with specific output filters (diff, log, status, show…). Running rtk git checkout -b my-branch, rtk git clone, or rtk git remote add works correctly today via pass-through.

The issue is that rtk discover's "supported" list only enumerates the subcommands with dedicated filters, so any other git subcommand lands in "unhandled" — even though rtk git <anything> already works.

Expected behaviour

Since rtk git covers all git subcommands (either with a dedicated filter or pass-through), rtk discover should:

  • Classify any bare git <subcommand> as a missed rtk git opportunity (i.e. move it from "unhandled" to "supported")
  • Or at minimum, note in the output that rtk git provides pass-through for these commands and they are not truly unhandled

Impact

Users (and AI assistants following RTK instructions) see the "open an issue?" prompt and file unnecessary issues — or worse, conclude that rtk git checkout doesn't work and keep using bare git checkout without the proxy.

Environment

rtk --version  # tested on 0.34.x and 0.40.x

Activity

  1. pszymkowiak commented on May 27, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟡 Priority medium
    🎯 Confidence 93%

    Summary

    rtk discover incorrectly classifies git subcommands handled by the universal pass-through as unhandled; fix in progress via PRs #1926 and #1979

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

    📁 Relevant files
    • src/discover.rs

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

  2. KuSh commented on Sep 5, 2026

    @KuSh
    Collaborator

    Closing as a duplicate of #888, which tracks the same problem with the more complete discussion. Please follow up there; if your case differs in a way that issue does not cover, comment here and it can be reopened.

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:clibugpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions