microsoft / microsoft/winget-cli

Progress doesnt get reset even if I cancel (ctrl+c) while using winget to install any package

Open
#3,431 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Output Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

image

The progress bar didnt get removed/cleared even if I cancel a winget installation.

image

Same for the taskbar.

Steps to reproduce
  • try to install any package.
    e.g; winget install Neovim.Neovim
  • press ctrl+c to stop the installation (halfway of installing)
  • Notice the windoes terminal progress bar (and in top left of the tab in windows teminal)
Expected behavior

It should reset those green progress bars too.

Actual behavior

image
This is stopped halfway even after cancellation where it should just ge reset. (as it was befoee installing anything)

Environment
[winget --info]
Windows Package Manager v1.5.1572
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.3086
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.1572.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with winget install Neovim.Neovim, then cancel the installation with Ctrl+C while it is in progress. Inspect the CLI's cancellation and progress-reporting paths; done means the Windows Terminal and taskbar progress indicators return to their pre-installation state after cancellation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.