[Repo Assist] fix(setup): ARM64-appropriate virtualization error message#609
Conversation
When preflight-wsl fails with 'virtualization is not enabled' on an ARM64 device, the previous message told users to enable 'VT-x/AMD-V (Intel VT or AMD SVM)' — terminology that doesn't exist on ARM64. Branch the remediation text on RuntimeInformation.OSArchitecture: - Arm64 → generic UEFI / Intune / HVCI wording - x64/x86 → existing VT-x/AMD-V text (unchanged) Closes #593 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Codex review: found issues before merge. Reviewed May 30, 2026, 9:43 PM ET / 01:43 UTC. Summary Reproducibility: yes. from source inspection: current Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land one ARM64-aware wording fix that includes deterministic x64 and ARM64 wording tests plus redacted proof from the affected setup path. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current Is this the best way to solve the issue? No. The wording direction is right, but this branch should make the architecture branch testable, update host-sensitive assertions, and provide real ARM64 setup proof before it is the best landing path. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against eb06fba21c44. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
🤖 This PR was created by Repo Assist, an automated AI assistant.
Summary
Closes #593
Fixes the ARM64 UX bug where a
preflight-wslvirtualization failure showed x86-centric remediation instructions (VT-x/AMD-V,Intel VT or AMD SVM) on ARM64 devices like the Microsoft Cadmus, where those settings don't exist.Root Cause
The
TryGetEnvironmentIssuehelper inSetupSteps.csused a single hardcoded x86 remediation string for the"virtualization is not enabled"WSL error. ARM64 devices use ARMv8 EL2 virtualization extensions, which are exposed in UEFI as a generic "Virtualization Support" toggle or controlled via Intune (Memory Integrity / HVCI / Pluton) — none of which match the VT-x/AMD-V terminology.Fix
Branch the remediation message on
RuntimeInformation.OSArchitecture:Architecture.Arm64→ generic UEFI / Intune / HVCI wording (new)VT-x/AMD-V (Intel VT or AMD SVM)text (unchanged)The detection logic itself (
Contains(text, "virtualization is not enabled")) is unchanged — the WSL error text is the same on both architectures.Test Status
set_env_*) in this runner environment. This is a pre-existing infrastructure issue unrelated to this change (no C# compiler errors).DetectsFirmwareVirtualizationOffchecksAssert.Contains("virtualization", message), which passes on both branches of the new conditional.