Skip to content

Comments

Only check dev mode reg key#306

Open
nmetulev wants to merge 3 commits intomainfrom
nmetulev/fix303
Open

Only check dev mode reg key#306
nmetulev wants to merge 3 commits intomainfrom
nmetulev/fix303

Conversation

@nmetulev
Copy link
Member

@nmetulev nmetulev commented Feb 20, 2026

Description

Fixes #303

Type of Change

  • 🐛 Bug fix

Checklist

  • Tested locally on Windows

AI Description

This change modifies the IsEnabled method in the DevModeService class to only check the "AllowDevelopmentWithoutDevLicense" registry key, removing the check for "AllowAllTrustedApps." This adjustment addresses the issue described in bug #303 by simplifying the logic for determining if development mode is enabled.

@nmetulev nmetulev requested review from azchohfi and Copilot February 20, 2026 22:16
@github-actions github-actions bot added the bug Something isn't working label Feb 20, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where the create-debug-identity command incorrectly reported that Developer Mode was not enabled, even when users had enabled it through Windows Settings. The issue was caused by the developer mode check requiring two registry keys instead of just the primary one.

Changes:

  • Simplified the developer mode detection logic in DevModeService.IsEnabled() to only check the AllowDevelopmentWithoutDevLicense registry key, removing the unnecessary check for AllowAllTrustedApps (sideloading)

@github-actions
Copy link

github-actions bot commented Feb 20, 2026

Build Metrics Report

Binary Sizes

Artifact Baseline Current Delta
CLI (ARM64) 13.65 MB 13.65 MB ✅ 0.0 KB (0.00%)
CLI (x64) 12.95 MB 12.95 MB ✅ 0.0 KB (0.00%)
MSIX (ARM64) 5.94 MB 5.94 MB 📈 +0.1 KB (+0.00%)
MSIX (x64) 6.17 MB 6.17 MB 📉 -0.2 KB (-0.00%)
NPM Package 12.09 MB 12.09 MB 📉 -0.1 KB (-0.00%)

Test Results

248 passed, 6 skipped out of 254 tests in 60.7s (+14.6s vs. baseline)

CLI Startup Time

30ms median (x64, winapp --version) · ✅ -7ms vs. baseline

@nmetulev nmetulev enabled auto-merge (squash) February 21, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Creating debug identity fails that Developer Mode is not enabled

2 participants