Skip to content

gh extension upgrade shows no progress for a long time, indistinguishable from a hang #14938

Open

Description

@devhindo

Describe the bug

gh extension upgrade <name> prints only the [<name>]: prefix and then shows nothing else, with no spinner, progress text or status, for a long time (about 40 seconds on a second attempt). While this is happening there is no way to tell whether the upgrade is working (downloading the release asset) or is stuck. On the first attempt I assumed it was hung and interrupted it with Ctrl+C after about 14 seconds. On the second attempt the same command finished on its own after about 42 seconds and printed the result.

Affected version

gh version 2.103.3 (2026-10-26)

Extension being upgraded: a precompiled binary extension, github/gh-stack, from v0.2.1 to v0.3.0. Linux, installed extension was not pinned.

Steps to reproduce the behavior

  1. Have a binary extension installed that has a newer release available. The extension itself printed "A new release is available: 0.2.1 -> 0.3.0. To upgrade, run: gh extension upgrade stack".
  2. Run gh extension upgrade stack.
  3. The terminal shows only [stack]: and then nothing.

Expected vs actual behavior

Expected: some indication of progress while the upgrade runs, for example "checking for updates...", "downloading v0.3.0...", and then the result, so the user can tell it is working and not hung.

Actual: only [stack]: is printed, followed by silence for tens of seconds, and then the result line appears at the end. The empty prefix looks identical to a hang, so users are likely to cancel a working upgrade. Cancelling may also leave the upgrade in an unknown state.

Logs

First attempt, interrupted by me after about 14 seconds:

$ gh extension upgrade stack
[stack]:


^C

Second attempt, which succeeded after about 42 seconds, with the prefix being the only output until the end:

$ gh extension upgrade stack
[stack]: upgraded from v0.2.1 to v0.3.0
✓ Successfully checked extension upgrades

Running it a third time afterwards returned immediately with [stack]: already up to date.

Suggestion

Show a spinner or progress message while gh extension upgrade is checking for and downloading a release (at least when stdout is a TTY), and print the target version before the download starts. This is related to #6463, which asks for information about the changes when upgrading, but this issue is only about showing progress and status so a slow upgrade can be told apart from a stuck one.

Activity

  1. added
    needs-triage
    on Nov 4, 2026
  2. devhindo commented on Nov 4, 2026

    @devhindo
    Author

    also it's useful for agents to know the status, assuming an extension will take more than 60s .. agents usually set timeouts for cmds like that to be 60s if no visible status is visible ..

  3. cli-triage commented on Nov 9, 2026

    @cli-triage

    Thanks for the detailed request. GitHub CLI 2.103.3 is the latest release, and it does not provide visible status during the reported wait. The extension prefix appears, then the final result is printed only after the upgrade completes.

    A TTY-aware spinner or short stage messages would make slow version checks and downloads distinguishable from a hang. This is an improvement to existing behavior rather than a failed upgrade, and the request is specific enough for maintainer review. The added agent timeout use case also supports showing ongoing activity.

    Supporting reports

    Generated by issue triage.

  4. deleted a comment from cli-triage on Nov 9, 2026
  5. added
    enhancement
    gh-extension
    on Nov 9, 2026
  6. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor

    Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.

    Unless you see the help wanted Contributions welcome label, we are not currently looking for external contributions for this feature.

    If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.

  7. removed
    needs-triage
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgh-extension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions