Skip to content

fix(desktop): offer recovery actions for failed updates - #3993

Open
renningg wants to merge 4 commits into
goat-si:devfrom
renningg:fix/desktop-update-failure-recovery
Open

renningg wants to merge 4 commits into
goat-si:devfrom
renningg:fix/desktop-update-failure-recovery

Conversation

@renningg

@renningg renningg commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

After a desktop update fails, Settings can still say “Update available” and offer the original Download or Install button. When an installer reports a filesystem permission error, the native updater discards the reason from its user-facing result.

Change

Settings shows the failed stage, the updater’s diagnostic and the corresponding retry. When the update has a known version, it also links to that version’s installer list on the configured release repository. The sidebar card shows the diagnostic alongside its update action.

For native installer errors, EACCES and EPERM explain the permission issue, and EROFS explains that the filesystem is read-only. Both a rejected install call and a subsequent native error event follow this path. The existing downloaded package and confirmation flow remain available for another install attempt. App-owned messages are translated in all nine desktop languages.

Scope and approval

This addresses missing feedback on the existing desktop update controls following #3828. It uses GOAT’s existing update states, installer retries and versioned release URL.

Verification

  • Tested installer recovery from both the native method and the native error event, plus stage-specific actions in Settings and the sidebar.
  • Opened the production renderer in an isolated macOS Electron profile and supplied controlled install and download failures. In Simplified Chinese, checked the permission guidance, the retry action for each stage, the installer URL, and the return to a normal offer after recovery.
  • All changed-file checks passed, including 2,431 tests in 22 files. The installer failure states were supplied by the test harness; the desktop application was not replaced.

Screenshots

Before, after the installer reports a failure

Version row before recovery feedback

After a filesystem permission failure

Version row with install recovery

After an interrupted download

Version row with download recovery

Sidebar card

Sidebar with installer guidance

renningg added a commit to renningg/goat that referenced this pull request Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant