github / github/copilot-cli

Copilot Update Command Is Not Working

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

描述

### Describe the bug

running the `copilot update` or from copilot prompt `/update` does not work as it was before 1.0.17

### Affected version

GitHub Copilot CLI 1.0.20.

### Steps to reproduce the behavior

TimeZone: Europe / Prague - CEST

@ 2026-04-08 14:10
PS C:\Users\xyz\> winget update GitHub.Copilot
No available upgrade found.
No newer package versions are available from the configured sources.

@ 2026-04-08 14:10
PS C:\Users\xyz\> copilot --version
GitHub Copilot CLI 1.0.20.
Run 'copilot update' to check for updates.

@ 2026-04-08 14:11
PS C:\Users\xyz\> copilot update
Checking for updates...
Error during update: TypeError: terminated

@ 2026-04-08 14:16
PS C:\Users\xyz\> copilot --version
GitHub Copilot CLI 1.0.20.
Run 'copilot update' to check for updates.

@ 2026-04-08 14:25
PS C:\Users\xyz\> copilot update
Checking for updates...
Error during update: TypeError: terminated

@ 2026-04-08 14:26
PS C:\Users\xyz\> winget update GitHub.Copilot
No available upgrade found.
No newer package versions are available from the configured sources.

@ 2026-04-08 14:37
PS C:\Users\xyz> winget update GitHub.Copilot
No available upgrade found.
No newer package versions are available from the configured sources.

@ 2026-04-08 14:42
PS C:\Users\xyz> copilot update
Checking for updates...
Error during update: Failed to download package: Error: ENOENT: no such file or directory, rename 'C:\Users\xyz\.copilot\pkg\universal\1.0.21' -> 'C:\Users\xyz\.copilot\pkg\universal\.replaced-1.0.21-15472-1775652424919'
Error during update: Failed to download package: Error: ENOENT: no such file or directory, rename 'C:\Users\xyz\.copilot\pkg\universal\1.0.21' -> 'C:\Users\xyz\.copilot\pkg\universal\.replaced-1.0.21-15472-1775652424919'

@ 2026-04-08 14:47
PS C:\Users\xyz> ls C:\Users\xyz\.copilot\pkg\universal\

Directory: C:\Users\xyz\Projects

Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 23.03.2026 23:34 1 1.0.10
d---- 28.03.2026 18:14 1 1.0.11
d---- 01.04.2026 23:17 1 1.0.12
d---- 03.04.2026 12:10 1 1.0.15
d---- 07.04.2026 22:11 1 1.0.17
d---- 08.04.2026 14:09 1 1.0.20
d---- 18.03.2026 11:04 1 1.0.5
d---- 23.03.2026 0:32 1 1.0.9

PS C:\Users\xyz\Projects> winget source list
Name Argument Explicit
------------------------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0 false
winget https://cdn.winget.microsoft.com/cache false
winget-font https://cdn.winget.microsoft.com/fonts true

@ 2026-04-08 14:59
PS C:\Users\xyz\Projects> winget update GitHub.Copilot
No installed package found matching input criteria.

@ 2026-04-08 15:12
PS C:\Users\xyz\Projects> winget install GitHub.Copilot
Found Copilot CLI [GitHub.Copilot] Version v1.0.20
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
- Packages
Microsoft.PowerShell [>= 7.0.0]
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "copilot"
Successfully installed

@ 2026-04-08 15:12
PS C:\Users\xyz\Projects> winget update GitHub.Copilot
No available upgrade found.
No newer package versions are available from the configured sources.

@ 2026-04-08 15:12
PS C:\Users\xyz\Projects> copilot --version
GitHub Copilot CLI 1.0.20.
Run 'copilot update' to check for updates.

@ 2026-04-08 15:13
PS C:\Users\xyz\Projects> $PSVersionTable

Name Value
---- -----
PSVersion 7.5.5
PSEdition Core
GitCommitId 7.5.5
OS Microsoft Windows 10.0.26200
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

### Expected behavior

When the new version is released, I'm assuming the feeds with updates are reflected within 2hrs

### Additional context

It is impossible to update frequently from winget feeds, as it seems.
I'm going to try manual download and install from github.com.

贡献指南

打开贡献指南

调研方向

Start by reproducing `copilot update` and prompt `/update` in Windows PowerShell 7.5.5 with GitHub Copilot CLI 1.0.20, noting the `TypeError: terminated` and ENOENT rename errors under `.copilot\pkg\universal`. Done means the command can obtain and install a newer version without those failures.

由索引模型根据 Issue 内容生成。

评估

技术栈
powershell, shell
领域
cli, release
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

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