Dashboard OS edition shows a normalized family name instead of the real EditionID

Author: loliriCreated Sep 30, 2026Updated Sep 30, 2026

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

  1. Use a machine whose EditionID is CoreCountrySpecific (家庭中文版 / Home China) — check HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID
  2. Open optimizerDuck 2.28.0
  3. Go to Dashboard → Operating System card
  4. The first line under the title reads Home, not CoreCountrySpecific

Root cause

optimizerDuck/Services/System/SystemInfoService.cs:1641:

csharp
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:

csharp
edition = ntKey.GetValue("EditionID")?.ToString() ?? edition;
public required string Edition { get; init; }
xml
<Run Text="{Binding ViewModel.SystemInfo.Os.Edition}" />

Related observations

  • The same renaming applies to other SKUs, just less obviously: Professional → Pro, ProfessionalEducation → Education. Education/Enterprise only look unchanged because those IDs happen to match the family name.
  • "Home" and "Pro" in the switch are unreachable — real EditionID values are Core and Professional. The switch looks written against marketing names rather than actual registry values, which may be why the StartsWith("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:2154 now logs the enum instead of the raw ID.
  • The enum is display-only: optimizerDuck/Domain/ has zero references to Edition, and both Shared.IsWindows11OrGreater and the "Windows 11" title use the build number. So the normalization costs information without feeding any logic.
  • Minor: Enum.WindowsEdition.Home is the literal string Home in 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