[PR #633] [MERGED] do not download updates multiple times #20808

Closed
opened 2026-04-19 15:15:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/633
Author: @BruceMacD
Created: 9/28/2023
Status: Merged
Merged: 9/28/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/app-update


📝 Commits (3)

📊 Changes

2 files changed (+19 additions, -40 deletions)

View changed files

📝 app/src/index.ts (+19 -21)
app/src/telemetry.ts (+0 -19)

📄 Description

We've hit a bug in the Electron auto-updater that prevents the toolbar app from restarting after update when autoUpdater.checkForUpdates() is called more than once. The root cause of this is not clear, it may be related to this Electron issue. In any case we shouldnt be downloading the update multiple times, so prevent checking for updates once we know one is available.

Also log Electron app errors to our server.log file so we can actually diagnose these issues in the wild.

resolves #587


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/633 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 9/28/2023 **Status:** ✅ Merged **Merged:** 9/28/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/app-update` --- ### 📝 Commits (3) - [`c32ec2f`](https://github.com/ollama/ollama/commit/c32ec2ff9be2887b73e989b1b7e6595fdc410a42) do not download updates multiple times - [`17152f5`](https://github.com/ollama/ollama/commit/17152f59caa3035f53d3c593bf52111a3ab2d2bc) download refactor - [`984fb9f`](https://github.com/ollama/ollama/commit/984fb9f4e81ed11ff535eb5476e414206c2d4726) Update index.ts ### 📊 Changes **2 files changed** (+19 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `app/src/index.ts` (+19 -21) ➖ `app/src/telemetry.ts` (+0 -19) </details> ### 📄 Description We've hit a bug in the Electron auto-updater that prevents the toolbar app from restarting after update when `autoUpdater.checkForUpdates()` is called more than once. The root cause of this is not clear, it may be related to [this Electron issue](https://github.com/electron-userland/electron-builder/issues/7800). In any case we shouldnt be downloading the update multiple times, so prevent checking for updates once we know one is available. Also log Electron app errors to our server.log file so we can actually diagnose these issues in the wild. resolves #587 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 15:15:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#20808