#19098: fix(cli): improve update version check messaging
cli
size: S
Cluster:
Update Handling Fixes
## Summary
When npm registry is unreachable and `targetVersion` is null, the update command incorrectly treats it as a 'downgrade' and shows 'Downgrading from X to (unknown)' which is confusing.
## Changes
- Show 'Could not resolve version for \<tag\>' when npm registry is unreachable (instead of downgrade message)
- Show 'Already up to date (version)' when current matches target version
- Only trigger downgrade confirmation for actual downgrades (`cmp > 0`), not unknown versions
- Preserve channel persistence and plugin updates even when version resolution fails
## Testing
Added 3 test cases:
- `reports unresolved channel version without downgrade messaging`
- `logs already up to date when current and target versions match`
- `keeps channel persistence when target version resolution fails`
All 24 tests passing.
Closes #8450
Closes #10690
Most Similar PRs
#17237: fix(update): guard post-install imports after npm global update
by tdjackey · 2026-02-15
65.4%
#18966: fix(config): downgrade unknown bundled plugin references to warnings
by moxunjinmu · 2026-02-17
64.6%
#23730: fix(update): correctly compare versions with -N build suffix
by mrx-arafat · 2026-02-22
63.7%
#23113: fix: show actual runtime version after update/restart when service ...
by BryanTegomoh · 2026-02-22
62.9%
#22406: Fix update detection for Companion App npm-prefix installs
by graysurf · 2026-02-21
61.3%
#23660: fix(update): compare numeric -N suffix as build revision
by rylena · 2026-02-22
60.7%
#9196: Fix: Use local plugins for unpublished npm packages
by vishaltandale00 · 2026-02-05
60.7%
#23597: fix(mac): stop Sparkle updater from offering downgrades as updates
by cyberdrk305 · 2026-02-22
60.3%
#23292: fix(mac): correct sparkle:version for 2026.2.21 in appcast.xml
by SidQin-cyber · 2026-02-22
60.3%
#21054: fix(cli): fix memory search hang — close undici pool + destroy QMD ...
by BinHPdev · 2026-02-19
59.8%