github / github/copilot-cli

plugin update and reinstall do not pull fresh code on Windows — restores from local cache instead

Đang mở
#3,627 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:platform-windows 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ả

## Environment
- OS: Windows
- Copilot CLI version: 1.0.57
- Reproduced with plugin: `https://github.com/upld-internal/burnrate-copilot.git`

## Description

On Windows, Copilot CLI stores installed plugins in two locations:
- `%USERPROFILE%\.copilot\installed-plugins\_direct\\`
- `%LOCALAPPDATA%\copilot\marketplaces\\`

Running `/plugin update `, or uninstalling and reinstalling, does **not** re-clone from GitHub. It restores files from the `%LOCALAPPDATA%\copilot\marketplaces\\` cache. Plugin updates are never applied.

## Steps to reproduce

1. Install a plugin: `/plugin install https://github.com/upld-internal/burnrate-copilot.git`
2. Push a change to the plugin's GitHub repo
3. Run `/plugin update burnrate-copilot` (or uninstall and reinstall)
4. Check file timestamps: `dir "%USERPROFILE%\.copilot\installed-plugins\_direct\https---github-com-upld-internal-burnrate-copilot-git\scripts\"`
5. Files retain the original install timestamp — updated code is never pulled

## Expected behavior

`/plugin update` re-clones or pulls from GitHub and installs the latest code.

## Actual behavior

Both cache directories retain the original install content. Even after manually deleting `installed-plugins\_direct\\` and reinstalling, files are restored from the `marketplaces` cache rather than fetched from GitHub.

## Workaround

Manually delete **both** cache directories before reinstalling:
```
%USERPROFILE%\.copilot\installed-plugins\_direct\
%LOCALAPPDATA%\copilot\marketplaces\
```

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

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

Đánh giá

Issue này chưa được đánh giá.

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.