Skip to content

Detect reverted tweaks on launch#4582

Merged
ChrisTitusTech merged 1 commit into
ChrisTitusTech:mainfrom
vyas-devgna:feat/drift-detection
Jun 4, 2026
Merged

Detect reverted tweaks on launch#4582
ChrisTitusTech merged 1 commit into
ChrisTitusTech:mainfrom
vyas-devgna:feat/drift-detection

Conversation

@vyas-devgna
Copy link
Copy Markdown
Contributor

@vyas-devgna vyas-devgna commented May 28, 2026

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • UI/UX improvement

Description

Detects when applied tweaks get reverted (e.g. by Windows Update) and prompts to re-select them on launch.

  • Minimalist: Exactly 12 lines added across two files. No new files, functions, or comments.
  • Save State: Filter-saves applied registry/service tweak IDs to $env:LocalAppData\winutil\lastrun.json after running tweaks.
  • Drift Check: On launch, compares lastrun tweaks with current system state. If changes are detected, it prompts to re-select them on the Tweaks tab.

Testing / Verification

  1. Ran Standard preset to generate a fresh lastrun.json save state.
  2. Simulated a Windows Update by manually reverting registry keys for multiple active tweaks (e.g., End Task With Right Click, Location Tracking, and Telemetry).
  3. Launched utility. It successfully detected all 3 drifted tweaks, displayed the prompt, and automatically checked them on relaunch:
media__1780004280210 media__1780004297830

@github-actions github-actions Bot added the new feature New feature or request label May 28, 2026
@ChrisTitusTech
Copy link
Copy Markdown
Owner

That is am awesome PR Thank you @vyas-devgna

@ChrisTitusTech ChrisTitusTech merged commit e4d3052 into ChrisTitusTech:main Jun 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants