Updater: cannot switch from the beta channel back to stable
Maintainers usually reply within 5 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start with src/Genie.App/Services/CoreAppUpdater.cs, especially its constructor and StageOnExitAsync, then trace how UpdatesDialogViewModel selects a channel and presents check results. Check Velopack's downgrade option and whether settings remain readable after returning to an older release. Done when switching from a beta to stable offers the stable version with a clear explanation, while stable installs and auto-apply do not downgrade unexpectedly.
Written by the indexing model from the issue text.
Description
What happens
Once an install has updated to a beta build, setting Channel back to stable in Help ▸ Check for Updates does not take it back to the stable release. The check reports "Core is up to date." and the Update button stays disabled, so the install stays on the beta build.
Today that means anyone who moved to 5.0.1-beta.1 or 5.0.1-beta.2 to test cannot return to 5.0.0 from inside the app. The only way back is to uninstall and reinstall from the v5.0.0 release.
Steps to reproduce
- Start on
5.0.0(stable channel). - Help ▸ Check for Updates, set Channel to beta, check, and update. Help ▸ About Genie 5 now shows
5.0.1-beta.2. - Open Help ▸ Check for Updates again and set Channel to stable.
- Click the Core check.
Expected: 5.0.0 is offered, and updating installs it.
Actual: "Core is up to date." Nothing is offered.
Cause
The channel switch itself works: UpdatesDialogViewModel saves the channel and rebuilds CoreAppUpdater with prerelease: false, so the feed now only contains stable releases. The newest of those is 5.0.0, which is a lower version than the installed 5.0.1-beta.2. The update check only ever offers a higher version, so it returns nothing, and CoreAppUpdater.CheckAsync reports that as "Up to date."
CoreAppUpdater builds its UpdateOptions with only ExplicitChannel set (src/Genie.App/Services/CoreAppUpdater.cs, constructor). Downgrades are never allowed, so a channel switch can only ever move forward.
The same applies to the auto-apply path (StageOnExitAsync), which uses the same check.
Scope
- Affects every platform, since the version comparison is the same everywhere.
- It is temporary per release cycle: once
5.0.1ships as stable it is a higher version than5.0.1-beta.2, so beta installs on the stable channel will be offered it normally. Until then they are held on the beta. - It was not visible before
5.0.0, because every build was a pre-release and there was no stable release to go back to.
Suggested direction
- When the selected channel is stable and the installed build is a pre-release, allow the check to offer the latest stable release even though it is a lower version (Velopack has an
AllowVersionDowngradeoption onUpdateOptionsfor this). It should not apply when the installed build is already stable, and should not be used by auto-apply without the user asking for it. - Say what is happening in the dialog: "You are on 5.0.1-beta.2. Switching to stable will install 5.0.0." rather than "Up to date."
- Settings written by the newer build have to load in the older one. Worth a check before offering the downgrade.
- Until this is fixed, the test notes for a beta should say how to get back (reinstall from the stable release).
- Dominant language
- C#
- Stars
- 2
- Forks
- 5
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 22
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GenieClient/Genie5
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
GenieClient/Genie5#496 ·
Maintainers usually reply within 5 days
-
enhancement g4-regression
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
GenieClient/Genie5#494 ·
Maintainers usually reply within 5 days
-
area:ui-dock enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GenieClient/Genie5#462 ·
Maintainers usually reply within 5 days
-
area:mapper bug est:<1d P2
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
GenieClient/Genie5#449 · 1 comment ·
Maintainers usually reply within 5 days
-
[Bug] Maps ▸ Update from Official Repo / Repair Maps give no notification of success or failurePossibly taken A pull request linked to this issue is open or already merged. Openarea:mapper area:updater bug est:<1d P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
GenieClient/Genie5#423 · 1 assignee ·
Maintainers usually reply within 5 days
All issues in GenieClient/Genie5
Similar issues
-
documentation good first issue kind:task level:starter size:s
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Arggon/ArggonStores#66 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Tool] MockAPIOpenhas-image has-license has-readme new-tool ready-to-approve repo-verified
Difficulty 1/5 Under an hour Newbie friendliness 72/100
shanselman/TinyToolTown#956 ·
Maintainers usually reply within 2 days
-
bug frontend
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Bug]: Native build script prints a traceback when Git is missing from PATHPossibly taken @Jaisuryan-web claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
KnifeLemon/Filee#1953 ·
Maintainers usually reply within 1 day