Skip to content

Wire up DisableSearchHistory and DisableSearchHighlights - #30

Merged
BiosSystem merged 1 commit into
masterfrom
feature/wire-search-switches
Sep 8, 2026
Merged

Wire up DisableSearchHistory and DisableSearchHighlights#30
BiosSystem merged 1 commit into
masterfrom
feature/wire-search-switches

Conversation

@BiosSystem

Copy link
Copy Markdown
Owner

Clears the two dead parameters found while composing the preset library in #29.

The defect

Both -DisableSearchHistory and -DisableSearchHighlights were declared as CLI parameters in WinSwift.ps1 and Scripts/Get.ps1, and both had apply and undo reg files on disk:

Regfiles/Disable_Search_History.reg      Regfiles/Undo/Enable_Search_History.reg
Regfiles/Disable_Search_Highlights.reg   Regfiles/Undo/Enable_Search_Highlights.reg

But neither had a Features.json entry. The apply phase resolves work from Features.json (a param whose key doesn't match a feature is dropped), so passing either switch did nothing, silently. They were the only two of 145 parameters in that state.

The fix

Registry-backed features are dispatched generically from their metadata — the same path DisableBing takes, minus its app-removal side effect — so the two catalogue entries are the entire fix. No handler code required.

  • Categorized under Start Menu & Search to match DisableBing.
  • Regenerated the en-US language catalogue so it stays in exact parity with Features.json (the localization drift test enforces this).

Six parameters still lack a Features.json entry (EnablePerformanceTweaks, DisableWindowsAds, EnableCompetitiveGaming, DisableMemoryIntegrity, DisableSettingsAds, DisableWidgetsDeep) — those are dispatched by their own blocks in WinSwift.ps1 and work correctly. Verified the orphan count is now exactly those six.

Verification

Confirmed both features now resolve into applyIds where they were previously dropped, both reg files (apply + undo) exist, and both remain declared as CLI params. Static validation passes (114 files); standalone rebuilt and parse-checked.

Not verified end to end: applying needs elevation, so the registry write itself is covered by the generic registry path that every other feature already exercises, not observed here.

🤖 Generated with Claude Code

Both were declared CLI parameters with apply and undo reg files on disk,
but no Features.json entry, so passing either did nothing. The apply
phase resolves work from Features.json, and neither switch was there, so
it was dropped without a word.

Registry-backed features are dispatched generically from their metadata,
the same path DisableBing uses minus the app-removal side effect, so the
two catalogue entries are the entire fix. No handler code needed.

Categorized under Start Menu & Search to match DisableBing. Regenerated
the en-US language catalogue so it stays in exact parity with
Features.json, which the localization drift test enforces.

This clears the two dead parameters found while composing the preset
library. The six that remain without a Features.json entry are
dispatched by their own blocks in WinSwift.ps1 and are working.
@BiosSystem
BiosSystem merged commit 3bf75f6 into master Sep 8, 2026
1 check passed
@BiosSystem
BiosSystem deleted the feature/wire-search-switches branch September 8, 2026 08:07
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