Refresh button on upgrades page not working

Open
#322 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
swift
Domain
backend, desktop

Research direction

Start by tracing the upgrades page refresh button to the code that loads available upgrades and invokes Homebrew commands. Compare that refresh path with what changes after running brew upgrade in Terminal, then check the relevant tests or add coverage for the refresh behavior. Done means pressing refresh updates the UI with available upgrades without requiring a separate Terminal command.

Written by the indexing model from the issue text.

Description

Before submitting
  • I have searched the issues and pull requests for duplicates.
  • I am reporting a specific problem with BrewUI and have described how to reproduce it, or the circumstances of an intermittent failure.
What happened?

I noticed for a while now that the refresh button on the upgrades page is not doing anything. I can push the refresh button multiple times, wait for minutes, close and restart the app and no updates show up.

As soon as I execute the "brew upgrade" command in the terminal, I see the available updates in the ui.

Expected behaviour

I would expect the refresh button to execute the "brew upgrade" command in the background and show the available updates in the ui.

Steps to reproduce
  1. Install the MacOS app
  2. Make sure you have apps installed and that they are not all up-to-date
  3. Open the ui.
  4. Press the refresh button
App version and build

0.4.1 (1070)

How was the app installed?

GitHub release download

macOS version and build

27.3 bèta (26C5035r)

Mac processor

Apple silicon

Homebrew configuration
Homebrew
HOMEBREW_VERSION: 7.0.13
ORIGIN: https://github.com/Homebrew/brew
HEAD: bc63375ac3a4d6debb1ceb441ae6e22854f0909a
Last commit: 7 days ago
Branch: stable
HOMEBREW_PREFIX: /opt/homebrew
Homebrew Ruby: 4.0.9 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/4.0.9/bin/ruby

System
Core tap: N/A
Core cask tap: N/A
CPU: deca-core 64-bit arm_donan
Clang: 21.0.0 build 2100
Git: 2.54.0 => /Applications/Xcode-beta.app/Contents/Developer/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 27.3-arm64
CLT: 27.2.0.0.1792721180
Xcode: 27.0 => /Applications/Xcode-beta.app/Contents/Developer
Metal Toolchain: N/A
Rosetta 2: false

Environment (HOMEBREW_*)
HOMEBREW_VERSION: 7.0.13
HOMEBREW_PREFIX: /opt/homebrew
Logs, screenshots and crash reports

No response

Additional context

No response

Dominant language
Swift
Stars
2.8k
Forks
94
Avg merge
18h 12m
Merged PRs (30d)
17

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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.

More from Homebrew/BrewUI

All issues in Homebrew/BrewUI

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.