cotabby icon indicating copy to clipboard operation
cotabby copied to clipboard

[Feature] Ask before installing aria2 with Homebrew

Open hughwf opened this issue 3 weeks ago • 0 comments

Summary

On a Mac that has Homebrew but not aria2c, starting a model download runs brew install aria2 without asking. I'd suggest either asking first or skipping the automatic install.

Problem

From reading main at 8cdbea2 (added in #813, not in a release yet):

  • Each model download waits for resolveAria2Executable() before it starts (ModelDownloadManager.swift#L466).
  • If aria2c isn't found, Aria2Provisioner runs brew install aria2 with NONINTERACTIVE=1 and its output discarded. It waits up to 120 seconds while the UI shows "Downloading" (Aria2Provisioner.swift#L135-L152).
  • Nothing in the UI or docs mentions this, and the outcome isn't remembered. If the install fails, every later download tries again and waits again. If someone uninstalls aria2, the next download reinstalls it.

aria2 comes from homebrew/core, so this is about consent, not about the package being safe. Changing someone's Homebrew installation is a system change most people expect to approve, especially from an app that already has Accessibility and Input Monitoring access.

Proposed direction

Simplest option: use aria2c only if it's already installed, and otherwise fall back to URLSession, which is already what happens on Macs without Homebrew. A short hint in the download UI, such as "Install aria2 (brew install aria2) for faster downloads", would keep the speedup easy to find.

If you'd prefer to keep the automatic install, a one-time prompt that names the command and remembers a "no" would also work.

Additional context

I'm happy to open a PR for whichever option you prefer.

hughwf avatar Nov 04 '26 21:11 hughwf