github / github/copilot-cli

AI Credit Usage for uninstalling a plugin.

Đang mở
#4,032 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:plugins
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

Today I removed the superpowers plugin from the superpowers marketplace using `/plugin rm superpowers@superpowers-marketplace` and in order to do so, it needed to read the plugin help, and convert rm alias to the uninstall command.

I don't understand why this is not just an alias that performs the exact same command.

Instead it used 8.83 AI Credits. 0.126% of my 7000 allowance.

### Affected version

GitHub Copilot CLI 1.0.68

### Steps to reproduce the behavior

With the plugin installed:
/plugin rm superpowers@superpowers-marketplace

Watch it think:

```
Thought for 1s
The user is trying to uninstall a plugin called "superpowers@superpowers-marketplace" and I need to figure out what CLI command handles plugin removal in this copilot system.

Shell Remove superpowers plugin 2 lines…
copilot plugin rm superpowers@superpowers-marketplace 2>&1

Thought for 1s
I'm wondering if "plugin rm" is actually a subcommand within the Copilot CLI's interactive session rather than something to execute directly through PowerShell. Let me check the help documentation to clarify.

$ Shell Check plugin command help 28 lines…
copilot plugin --help 2>&1
$ Shell Uninstall superpowers plugin 2 lines…
copilot plugin uninstall superpowers@superpowers-marketplace 2>&1
```

Be shocked and amazed at the ridiculousness of this.

### Expected behavior

Use NO input tokens. It is the /plugin command, why does it need to send that to the LLM?

### Additional context

Claude Sonnet 5 (medium) was the selected model.

I had used /plugin list to allow me to copy-paste the plugin name, so it is possible some of the credit usage was from this.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Không có tệp nguồn hoặc bài kiểm thử nào được nêu. Tái hiện `/plugin rm superpowers@superpowers-marketplace` khi plugin đã được cài đặt, so sánh với `/plugin uninstall`, và theo dõi nơi alias được diễn giải cũng như nơi các lệnh gọi model được thực hiện. Được xem là hoàn tất khi việc gỡ bỏ hoàn thành mà không cần tra cứu trợ giúp hoặc đầu vào LLM không cần thiết, với các bài kiểm thử bao quát hành vi này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
shell
Lĩnh vực
ai, cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.