Skip to content

fix(presets): exclude power plan from quick-apply presets - #56

Merged
carterscode merged 1 commit into
mainfrom
fix/presets-exclude-power-plan
Jun 20, 2026
Merged

fix(presets): exclude power plan from quick-apply presets#56
carterscode merged 1 commit into
mainfrom
fix/presets-exclude-power-plan

Conversation

@carterscode

Copy link
Copy Markdown
Owner

What & why

The quick-apply preset buttons (Apply recommended, Apply extreme, Reset all to defaults) previously staged the Windows power plan as part of their batch — Recommended/Extreme switched it to the CPU-aware prebuilt with Monitor + Auto-apply on, and Reset reverted it to Balanced and un-monitored it.

Per request, the active power scheme should be isolated — a one-time setup the user performs themselves on the CPU / Power tab — and no preset button should touch it. This change removes the power plan from all three presets, so a preset click never overwrites the user's chosen plan (Recommended/Extreme) nor undoes it (Reset).

Changes

  • RecommendedPreset.cs — drop the SetPowerPlan calls from ApplyToDraft / ApplyExtremeToDraft and the ResetPowerPlan call from ResetToDefaultsToDraft. Remove the now-orphaned SetPowerPlan, ResetPowerPlan, and SafeListPlans helpers plus the unused installedPlans overloads (the UI only called the simple overloads). recipe stays — the dual-CCD service guardrail still uses it. Doc comments now list the power plan as a third deliberately-excluded category.
  • SettingsWindow.xaml — each preset blurb states it leaves the power plan alone and points to the CPU / Power tab.
  • Tests — replaced the two old "preset stages Balanced" tests with three: Recommended/Extreme don't touch the plan, and Reset preserves a user's manual power-plan setup.
  • Docs — corrected STAGED-APPLY-ARCHITECTURE.md (table claimed all three staged the CPU-aware power plan) and added a note to wiki/Settings-and-tabs.md.

The dedicated power-plan controls (PowerPlanCombo, the Monitor/Auto-apply checks, "Suggest best prebuilt" / "Build optimized plan") are untouched — manual one-time setup is unchanged.

Verification

  • dotnet build — clean (0 warnings; warnings-as-errors).
  • dotnet test554 passed, 0 failed.

🤖 Generated with Claude Code

The Recommended / Extreme / Reset quick buttons no longer stage, monitor,
or revert the Windows power plan. The active power scheme is now isolated
as a one-time, user-initiated setup on the CPU / Power tab, so a preset
click never overwrites (Recommended/Extreme) or undoes (Reset) the user's
chosen plan.

- RecommendedPreset: drop the SetPowerPlan/ResetPowerPlan calls; remove the
  now-orphaned SetPowerPlan, ResetPowerPlan, SafeListPlans helpers and the
  unused installedPlans overloads (recipe stays for the dual-CCD guardrail).
- Settings UI blurbs note each preset leaves the power plan to the CPU/Power tab.
- Tests: lock in that Recommended/Extreme don't touch the plan and Reset
  preserves a user's manual power-plan setup.
- Docs: correct STAGED-APPLY-ARCHITECTURE.md and the wiki preset descriptions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@carterscode
carterscode merged commit 1f1e747 into main Jun 20, 2026
5 checks passed
@carterscode
carterscode deleted the fix/presets-exclude-power-plan branch June 20, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant