Skip to content

feat(updater): add package manager selector to Software Updater page#113

Merged
dbfx merged 3 commits intomainfrom
feat/updater-package-manager-selector
Apr 3, 2026
Merged

feat(updater): add package manager selector to Software Updater page#113
dbfx merged 3 commits intomainfrom
feat/updater-package-manager-selector

Conversation

@dbfx
Copy link
Copy Markdown
Contributor

@dbfx dbfx commented Apr 3, 2026

Summary

  • Adds a winget/Chocolatey dropdown selector directly on the Software Updater page toolbar (next to the Re-check button), visible only on Windows
  • Selecting a different package manager optimistically updates the settings store and automatically triggers a re-check
  • Stays in sync with the existing Settings page toggle — both read/write the same windowsPackageManager setting

Test plan

  • On Windows, verify the dropdown appears next to the Re-check button with "winget" selected by default
  • Switch to "Chocolatey" — confirm the updater immediately re-checks using choco
  • Switch back to "winget" — confirm re-check uses winget
  • Verify the dropdown is disabled while a check or update is in progress
  • Open Settings page — confirm the package manager selection matches whatever was last chosen in the updater
  • Change the setting in Settings, go back to the updater — confirm the dropdown reflects the change
  • On macOS/Linux, verify the dropdown does not appear

🤖 Generated with Claude Code

Allow users to switch between winget and Chocolatey directly from the
updater toolbar without navigating to Settings. Automatically re-checks
for updates when the selection changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b7f826253f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/renderer/src/pages/SoftwareUpdaterPage.tsx Outdated
Ensures the writeLock queue in settings-store has flushed the new
windowsPackageManager value before softwareUpdateCheck reads it,
preventing an intermittent race when another write is in flight.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dbfx dbfx merged commit 318b4b7 into main Apr 3, 2026
9 checks passed
@dbfx dbfx deleted the feat/updater-package-manager-selector branch April 3, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant