Skip to content

[P1][bug] A failed install leaves the status bar reporting a download that is not happening #569

Closed

Description

@EVWorth

What

installUpdate sets the status to downloading, then returns without touching it if there is nothing to install:

set({ updateStatus: "downloading", ... });
try {
  const cached = useSettingsStore.getState().pendingUpdate;
  if (!cached) return;

The status bar then shows "Downloading update" with a spinner indefinitely. There is no error, no way back, and clicking again cannot help because the button only renders in the available state.

The existing test encodes the gap

it("does nothing when no cached update is available", async () => {
  ...
  expect(process.relaunch).not.toHaveBeenCalled();
});

It asserts what did not happen and never checks the state left behind — which is why the spinner went unnoticed.

Reachable

pendingUpdate is cleared by any subsequent checkForUpdates, including the one the status bar fires on mount. A check that resolves between the click and the read leaves exactly this state.

Expected

An install with nothing to install returns the status to where it can be retried, and says so. The same applies to the downloaded state if relaunch() fails.

Activity

  1. added
    severity/p1
    kind/bug
    area/theming
    on Sep 8, 2026
  2. EVWorth commented on Sep 11, 2026

    @EVWorth
    OwnerAuthor

    Already fixed, in 6ecba3b ("separate downloading from restarting, and put the refusal in the action", #573).

    Covered in settingsStore.test.ts, which cites this issue number at the relevant assertions.

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

    area/themingkind/bugseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions