github / github/copilot-cli

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

未关闭
#3,627 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:platform-windows area:plugins
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

## 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\
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。