Dashboard OS edition shows a normalized family name instead of the real EditionID
Describe the bug
The Operating System card on the dashboard no longer shows the actual EditionID from the registry — it shows a normalized family name instead.
On a 家庭中文版 install (EditionID = CoreCountrySpecific), the card reads Home · 64 位 · 24H2. I expected CoreCountrySpecific: that is what previous versions showed, and that is what the registry actually contains.
Steps to reproduce
- Use a machine whose
EditionIDisCoreCountrySpecific(家庭中文版 / Home China) — checkHKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID - Open optimizerDuck 2.28.0
- Go to Dashboard → Operating System card
- The first line under the title reads
Home, notCoreCountrySpecific
Root cause
optimizerDuck/Services/System/SystemInfoService.cs:1641:
if (id.StartsWith("Core", StringComparison.OrdinalIgnoreCase))
return WindowsEdition.Home;Every Home-family SKU's EditionID starts with Core, so they all collapse into one label:
| EditionID | shown as |
|---|---|
Core — 家庭版 |
Home |
CoreCountrySpecific — 家庭中文版 |
Home |
CoreSingleLanguage — 家庭单语言版 |
Home |
WindowsEdition (SystemInfo.cs:102) only has Unknown/Home/Pro/Education/Enterprise/Server, so there is nowhere for the distinction to survive — the displayed value can no longer be traced back to the SKU.
This is a behavior change from f69bd689 ("refactor: native power plans, SystemInfo split and dashboard live data", 2026-09-13). Before that commit the field was the raw registry string, bound directly:
edition = ntKey.GetValue("EditionID")?.ToString() ?? edition;
public required string Edition { get; init; }<Run Text="{Binding ViewModel.SystemInfo.Os.Edition}" />Related observations
- The same renaming applies to other SKUs, just less obviously:
Professional→Pro,ProfessionalEducation→Education.Education/Enterpriseonly look unchanged because those IDs happen to match the family name. "Home"and"Pro"in the switch are unreachable — realEditionIDvalues areCoreandProfessional. The switch looks written against marketing names rather than actual registry values, which may be why theStartsWith("Core")guess was needed.- Unrecognized SKUs became less informative: they now render as
Unknown/ 「未知」, where the raw ID (Starter,Ultimate, …) used to be shown. - The startup log lost information too —
SystemInfoService.cs:2154now logs the enum instead of the raw ID. - The enum is display-only:
optimizerDuck/Domain/has zero references toEdition, and bothShared.IsWindows11OrGreaterand the "Windows 11" title use the build number. So the normalization costs information without feeding any logic. - Minor:
Enum.WindowsEdition.Homeis the literal stringHomein every language file, including zh-CN, so a Chinese UI shows an English word.
Suggested fix
Keep the raw EditionID on WindowsInfo and display it (restores the previous behavior). If a friendly name is wanted, show it alongside the raw value rather than replacing it, and map with an explicit SKU table instead of StartsWith/Contains.
System info
- Windows version: Windows 11 家庭中文版, EditionID
CoreCountrySpecific - optimizerDuck version: v2.28.0
- Ran as administrator? No — the dashboard reads this without elevation.
Source: itsfatduck/optimizerDuck