Renew WMI subscriptions after resume, unlock, watcher failure or prolonged silence, then rescan processes and reapply saved rules. Retry unavailable executable paths, initialize diagnostics before monitoring, and use the shared startup path. Include regression tests and v1.7.9 release metadata. Related to #95; keep open pending reporter confirmation.
Game Boost StopAsync and Dispose reuse SyncTimer for the timer; the always-true
UpdateDownloadResult.ChecksumVerified and an unused using are gone. No behavior change.
A successful update exits right after starting the installer, so its ~55 MB folder was never
removed. At elevated startup, folders older than a day are deleted, only when they are owned by
Administrators (a user cannot create those or change what is inside).
Windows does not start an admin-only exe from Run at logon, so the entry kept autostart off while
the setting showed it on and the startup repair skipped creating the scheduled task.
Application.Shutdown ignored the window's cancel, so Game Boost, reset-on-exit and the default
power plan were never restored before the installer took over.
Timer.Dispose does not wait for a callback already on the thread pool; such a tick could apply
changes after the shutdown restore and leave the game handle open.
ReapplyAsync put back the session's old process model, which still said AboveNormal after the
restore had set the game back to Normal, so the priority was not applied again.
- A portable copy that turns on autostart now offers to download, verify and
install the official version through the update path (checksum required,
admin-only folder); it never downgrades. The installed copy turns autostart
on at its first start when the setting asks for it, after the stale-task
cleanup, so it also self-heals a removed task.
- The installer no longer asks for a folder: always Program Files, the only
place a non-admin program cannot replace the elevated exe. Installs in another
folder move there on upgrade; only ThreadPilot's own files are removed from
the old folder (the old uninstaller is not run: it deletes the user's settings).
Verified in Windows Sandbox: old install in C:\Apps moved to Program Files,
user file and settings kept, the installed app registered both tasks itself.
Process.EnableRaisingEvents opens the game with PROCESS_ALL_ACCESS and the
session kept that handle for the whole game: exactly the kind of outside
handle anti-cheats scan for, and a protected (PPL) game refused it and fell
back to polling.
The game is now opened with only SYNCHRONIZE and
PROCESS_QUERY_LIMITED_INFORMATION; start time and CPU time come from
GetProcessTimes on that handle, and the exit wait is a thread-pool
registration on it, still checked with one zero wait first so a handle
stripped of SYNCHRONIZE falls back to polling. +1 native test (a protected
process can be held).
During a session the game was looked up twice every 3 s (identity + CPU
time, each a GetProcessById and the identity a full process snapshot for
SessionId), and every 15 s a model was built for every process on the
machine to find a few listed background names.
- The game is held open for the session (Process + Exited): its exit ends
the session at once, under the same lock as the tick; CPU time for the
load sampling is read from the same handle. The identity is re-checked
through the held handle, which also pins the PID.
- The handle is verified with one wait before the exit wait is registered,
so a handle without SYNCHRONIZE (anti-cheat) falls into the polling
fallback instead of failing on the runtime's wait thread. A denied or
protected game keeps the previous polling.
- The rescan filters the GetProcesses snapshot by listed name before any
model is built; exact paths are still checked afterwards.
- Session id read with ProcessIdToSessionId instead of Process.SessionId
(a full snapshot per listed background process every 15 s).
Ownership, journal and restore unchanged. +8 tests (903/903).
- The launch task is re-registered on every elevated start again (now in the
background), so a changed definition or another admin never keeps a stale one.
- Admin-only folders are owned by Administrators when elevated, so the user
cannot rewrite their DACL with UAC off or a non-default owner policy.
- The update provider trusts only folders it created itself.
- Game Boost does not remember a foreground process as not-a-game while its
path is still unreadable.
- Registry priority now writes IFEO\<exe>\PerfOptions\CpuPriorityClass, the value
Windows reads (the old PriorityClass value did nothing and is cleaned up), and
refuses an empty image name that would have targeted the IFEO root.
- Profile names must be plain file names, so they stay in the profiles folder.
- P/Invoke DLLs load from System32 only; explorer.exe is started by full path.
- The elevated restart passes arguments through ArgumentList (correct quoting).
- The single-instance mutex no longer crashes startup when another session owns it.
- Log size and retention are clamped and the size math is done in long.
- BinaryFormatter is disabled: the app only copies text to the clipboard.
- Two services registered but never resolved are no longer registered.
- build/install-threadpilot.ps1 verifies the installer against SHA256SUMS.txt.
- The Game Boost timer runs only while Game Boost is on (off by default);
turning it off still restores everything through ReapplyAsync.
- A foreground process just rejected as not-a-game is not rebuilt into a full
process model every 3 s; it is looked at again after 30 s or on a settings
change.
- Switching power plans reads one /list for the previous and target plans and
reuses it after /setactive: 3 powercfg.exe starts instead of 5 (2 when
duplicate prevention is off).
- TieredCompilation off: the background tier-1 re-JIT cost ~4.5 s of CPU at
every start for a tray app that gains little from it. Measured: startup CPU
8.8 s -> 5.5 s, idle after ~7 s instead of 9-18 s, same idle CPU, window +0.3 s.
- The elevated launch task is ensured in the background: only the next launch
needs it, and its schtasks calls held up the first window.
- No second settings load in MainWindow (App already loaded them and applied
the theme), no fixed 500 ms wait before hiding the overlay, and the cold WMI
CPU-name query runs off the UI thread.
Every 5 s refresh built a new FilteredProcesses collection, so the grid rebuilt
all rows and dropped the sort picked from a column header. The filtered result
is now synced into the existing collection with remove/move/insert, which keeps
rows, selection and header sort (window-open idle CPU 3.0-3.5% -> 2.2% of a core).
Rules load from %AppData%, which any program of the user can edit, but only the
priority path checked for protected processes; CPU Sets, memory and I/O priority
and EcoQoS went straight through. The rules engine now checks the live process
(critical-process list and PPL) before applying anything, and the list gains a
few more system processes. Driver tweak restores accept only the values the
tweak itself writes, and their backup file is written atomically.
The installer runs elevated and silent, yet a release without the checksum file
was installed unverified. The download now stops before fetching anything when
the checksum asset is missing or not hosted on GitHub.
The elevated app wrote the scheduled-task definition and downloaded the update
installer into the user's %TEMP%, where a non-admin process can swap them (or
plant DLLs beside the installer) between the check and the elevated use. Both
now go into a fresh, unguessable folder under %SystemRoot%\Temp whose DACL
grants only Administrators and SYSTEM; users there cannot rename or delete
another account's folders.
ThreadPilot_Launch and ThreadPilot_Startup run with highest privileges and no
prompt, yet were bound to whichever copy last ran elevated, including portable
and dev folders any non-admin program can write to. Each elevated start now
deletes ThreadPilot tasks that point outside Program Files and registers them
only for an exe under Program Files, skipping the re-registration when the task
already points at this exe. Enabling autostart from a portable copy shows why
it is unavailable instead of a generic failure.
Game Boost now gives Windows hints as well as constraints, and adapts
the game's CPU Set to its load instead of applying it once:
- the game gets high QoS (power throttling off), on every CPU, so
Windows never throttles it while it is not in the foreground;
- in Isolation the listed background apps get EcoQoS, also on CPUs
where CPU Sets are not applied;
- a game that keeps its confined CPUs saturated has its CPU Set
released so Windows can use every core, and confined again after a
minute of low load (hysteresis, at most two releases per session).
Same ownership rules as CPU Sets: only values Windows still manages
are changed, user rules and the app's own QoS win, everything is
journaled and restored on exit, toggle and after a crash.
Efficiency mode writes now keep the process's other power-throttling
flags: Windows replaces the whole state on set, so the old write wiped
a timer-resolution opt-out set by the process itself.
Restore the complete local Game Boost/runtime topology work from 6c36ea6, including Activity diagnostics, while preserving the stable 1.7.7 release and channel guards. Preview notes document pending dual-CCD Ryzen/X3D, Intel hybrid, benchmarks and anti-cheat validation, with tester instructions.
* feat: back up persistent rules and resolve rule precedence deterministically
- Configuration export now includes persistent process rules (schema 3.0),
stays compatible with 2.0 bundles, validates before writing, previews
what an import replaces and rolls back on failure.
- Matching rules apply broad-to-specific (name, wildcard path, exact path,
then most recently edited), shared by the engine and the process summary,
which now lists the apply order and flags conflicting values.
- Localized the new strings in all seven languages.
* feat: clearer process and rule editors
- Process details: CPU, memory and I/O priority pickers with an explicit
Apply, undo of the last manual priority change (guarded against reused
PIDs), adaptive side/bottom details panel.
- Manual process control stays available while automation is paused, with
a persistent notice instead of an overlay.
- Saved-rule editor stages all edits (including the core mask) and saves
them together, showing pending changes.
- Localized the new strings in all seven languages.
* fix: one save path for a saved rule's cores
The rules editor's core mask went through a new update path that reported
success without saving when no affinity payload was built, and kept a
legacy mask next to a CPU selection. Merge it with the old single-purpose
method (now unused), keep its checks, and localize the undo message.
* feat: per-process efficiency mode (EcoQoS) for live processes and rules
Closes#66.
- Native: SetProcessInformation/GetProcessInformation with
ProcessPowerThrottling (EXECUTION_SPEED), three states: Windows decides,
On (EcoQoS), Off (never throttle / HighQoS).
- Process tab: context menu entries, a picker with Apply in the details
panel, current state in the summary, undo of the last change, included
when saving current settings as a rule (only if explicitly set).
- Rules: EfficiencyMode + ApplyEfficiencyModeOnStart, applied by the rules
engine, editable in the saved-rule editor, validated on import and part
of conflict detection.
- The summary flags when the global Power Throttling tweak voids it. CPU
priority is left alone, unlike Task Manager's efficiency mode.
- Localized in all seven languages.
* chore: keep CRLF line endings in SelectedProcessSummaryViewModel
* feat: clearer navigation, process page and rules editor
- Navigation pane open with short labels instead of seven bare icons.
- Processes: one toolbar row (search with placeholder, Filters and
Columns menus, sort, refresh); details split into Process, Priority,
CPU cores and Rule cards; pickers start from the process's current
values and stay empty when a value cannot be read; help paragraphs
moved into tooltips; core picker always visible.
- Rules: process rules first, clearer tab names, localized choices in the
saved-rule editor instead of internal enum names.
- Shorter page titles and subtitles in all seven languages; removed the
strings this made unused.
No data format changes.
* feat: settings and tweaks as Windows 11 rows, localized rule list
- Settings: one column of rows (what it is on the left, its switch on the
right), most used sections first, Save as the primary action.
- Tweaks: one tweak per row with its status dot and switch.
- Rule list: 'Applies' and 'Mode' columns use the same localized labels as
the editor and refresh on language change.
- Removed 76 strings no code referenced, from all seven languages.
* fix: issues found testing the beta in a clean Windows 11 VM
- Process counter could show more visible processes than the total
('157 / 151'): the batch total was a snapshot from the first load.
- Narrow windows (or 150% scaling): toolbar buttons move under the search
box instead of squeezing it to a few letters.
- Rules list keeps the 'Applies' column readable when narrow.
- Settings status message gets its own line instead of being cut.
Tested in a Hyper-V Windows 11 VM: clean install, upgrade, uninstall,
light and dark theme, 100% and 150% scaling.
* feat: remember layout choices; Windows 11 toggles in Tweaks
- The navigation pane, window size/position/maximized state, and the
process list filters, sort and columns now survive a restart. They live
in ui-state.json, apart from settings.json, so they never mark the
Settings page as unsaved or travel in exported configurations. A corrupt
file falls back to defaults; tests write to a temp file.
- Fixes the pane re-opening on every start (it was hard-coded open).
- Tweaks use a native-looking Windows 11 switch (40x20 track, sliding
thumb) with On/Off written beside it.
- New test: every on/off setting survives save and reload.
* docs: handoff for the 1.7.7 PR stack and beta test
* fix: P/E cores from the highest EfficiencyClass, AMD CCDs from real L3 groups
The legacy topology treated the lowest EfficiencyClass as the performance
core, swapping P- and E-cores on hybrid Intel CPUs. AMD CCDs were guessed
as 8 cores each, which split 6+6 parts (7900X3D, 9900X3D) into 8+4; they now
come from the L3 groups Windows reports, with the guess kept only as a
fallback. The topology snapshot also keeps each L3 group's size.
* feat: Game Boost, CPU Sets for the game and selected background apps
While a detected game runs, Game Boost sets process default CPU Sets from
the CPU topology: on AMD X3D with one larger L3 the game goes to the V-Cache
CCD, on Intel hybrid CPUs to the P-cores, and selected background apps
(browsers, sync clients, updaters, launchers) to the other cores. On dual-CCD
parts with equal L3 only the background moves, unless Isolation mode also
keeps the game on CCD0. Single-L3 and unreadable topologies are left to
Windows. Above Normal priority for the game is optional; never High.
Each change is written to a journal before it is made and undone when the
game exits, Game Boost is turned off or ThreadPilot closes, and on the next
start after a crash. Only values still exactly as Game Boost set them are
restored, never one a user rule or a manual change has taken over since.
Persistent rules and Game Boost share one apply gate, and a rule always
wins over Game Boost for the setting it covers.
The switch, mode and lists are on the Tweaks page, off by default, and take
effect without a restart.
* fix: Game Boost background entries with a full path never matched
The background list compared full-path entries against an empty path, so
only bare process names worked. Found by a new integration test that runs
the real services on two copies of PING.EXE: CPU Sets and priority are set
and read back through Windows, removed when Game Boost is turned off, and
undone from the journal after a simulated crash. The topology is simulated
from this machine's CPU Set IDs, so the test also runs on CPUs where Game
Boost would not act; it skips itself below 8 cores.
* feat: report Game Boost sessions and restore results in Activity
* test: diagnose EcoQoS read failures on Windows Server
* chore: prepare 1.7.7-beta.2 and keep prereleases out of stable channels
* test: use native full-query access mask in EcoQoS diagnostic
* docs: update beta handoff and prerelease publication policy
* ci: run native EcoQoS tests on a Windows 11-era kernel
Windows Server 2022 build 20348 rejects GetProcessInformation(ProcessPowerThrottling) with ERROR_INVALID_PARAMETER (87), with both limited and full query handles. Windows 11 local tests pass. Use Server 2025 for CI/release tests and smoke testing; keep the real round-trip assertions, remove temporary probes.
* test: lock beta publication and native runner contracts
* chore: separate stable 1.7.7 from experimental Game Boost
Stable retains the validated EcoQoS/rules/UI stack. Preserve the complete local Game Boost implementation at ef2ec24 for the separate 1.7.8-beta.1 prerelease; no experimental Game Boost/topology changes ship in stable. Keep channel-aware publication and Windows 11-era native CI tests.
* fix: enable SeIncreaseBasePriorityPrivilege for high I/O priority and map privilege errors
* fix: scope SeIncreaseBasePriorityPrivilege and restore token state with reference counting
* test: add concurrent multi-threaded integration test for privilege scoping
CpuPresetGenerator was registered in dependency injection and never resolved:
no view model, no service, no view referenced it or CpuPreset. Around 700
lines including its tests, describing a feature that is not reachable and has
no caller to become reachable from.
It went unnoticed because DI registration looks like use. It is not: the
container will happily construct something nobody asks for.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ReviewRequired was not merely unread - it had the wrong shape. It is a bit
persisted at save time recording a judgement that can only be made at load
time, against whatever CPU is present then. Three writers, no readers: the
mask path, MigrateProcessProfile (whose Save/Load Profile commands are bound
in no XAML), and CpuPresetGenerator (registered in DI with no consumers).
The field goes. The question it was asking does not, so ShouldRequireReview
stays and finally gets a caller - saved rules, which nothing compared against
the running machine. A rule pinning cores that no longer exist did not
announce itself; it failed at apply time through a path that reports it as the
process having exited. The Saved process rules tab now names those rules, and
their cores can be set again from a mask without leaving the page.
ShouldRequireReview no longer compares topology signatures by record equality.
That included fields which can differ between two readings of the same
machine, and a warning that fires on everything teaches people to ignore it.
It now compares what actually changes the meaning of "core 9": the chip and
the shape of it.
Old files keep the serialized flag; it is ignored on read and dropped on the
next save.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Three loose ends from the 1.7.3 review.
Custom masks were flagged and left alone on a CPU change. Growing one is not a
judgement call - the CPUs that appeared were not part of a selection made
before they existed - and shrinking is safe while something is still selected,
so both now happen automatically. Two cases stay with the user: a mask that
would be left selecting nothing, and a mask a power plan association is using,
where a silent resize would change what that automation does without saying so.
Those are named in the Masks tab instead.
A different CPU with the same thread count is also caught now, by comparing the
topology signature stored in the mask's selection against the running machine.
That signature is what CpuSelectionMigrationMetadata.ReviewRequired was being
computed from in four places and read from in none; this is the first thing to
actually use it. The flag itself is still unread, and is now redundant here.
A rule's cores could only be changed from the Process tab, which needs the
process to be running - so the cores of a rule for a game you are not currently
playing were the one thing about it you could not edit. The saved-rules editor
now shows them and can set them from any saved CPU mask, through the same
migration path the Process tab uses. The per-core picker stays where it is
rather than being duplicated.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Built-in masks are re-derived when the logical CPU count changes, because
ThreadPilot knows what "All Cores" is supposed to mean. A mask the user drew
is not ThreadPilot's to redraw: only they know whether the CPUs that appeared
belong in it. Until now those masks just kept selecting the old cores in
silence, under a name that no longer described them.
The Masks tab now says which ones need a look, and only when the core count
came from a successful topology detection - resizing or accusing on the
strength of Environment.ProcessorCount, which under-reports under affinity
limits, would be worse than saying nothing.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Saved rules could only be created and deleted. Changing one meant going back
to the Process tab and re-saving it, and there was no way to park a rule
without losing it.
The saved-rules list now has an editor beside it for everything that does not
need the core picker: enabled, CPU priority, memory priority, I/O priority,
assignment mode, and keeping the system awake. The core selection stays in the
Process tab and the panel says so, rather than offering a worse second picker.
UpdateRuleAsync carries the affinity payload through untouched and derives the
ApplyXOnStart flags from the values, so setting a priority back to None really
does stop the rule applying one. Realtime is refused there as it is everywhere
else, and is absent from the list rather than offered and then rejected.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Three cards showed a red line instead of a state. Two of them, Ethernet power
saving and interrupt moderation, scanned every network adapter subkey without
guarding the reads: one adapter the user cannot open - VPN and vendor virtual
adapters ship with tighter ACLs - threw out of the whole scan, so the tweak
declared itself unavailable even though every real Ethernet adapter was
readable. The unreadable key is now skipped on its own.
Memory Integrity read only CI\State, which several builds leave empty. It now
reads DeviceGuard\Scenarios first, where the running HVCI state actually
lives, and keeps CI\State as the fallback.
The message those failures produced was the raw framework string, "Requested
registry access is not allowed." - true, unactionable, and not something a
user should ever be shown. The exception goes to the log; the card gets a
sentence.
The buttons on that page were near-white text on near-white chrome in dark
theme: an inline Style with no BasedOn discards WPF-UI's implicit Button
style, so they fell back to the stock WPF chrome while the foreground kept
inheriting the dark theme. It was the only such style in the repo.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Three findings from a pass over the main dashboard.
"+ Custom" in the affinity picker did nothing at all. CreateCustomMask was
searching the visual tree for a TabControl and setting SelectedIndex; the
window has been a NavigationView for several versions, so the search returned
null - no navigation, no error, no feedback. It now raises OpenMasksRequested,
mirroring the OpenRulesRequested event the window already handles. The dead
FindVisualChild helper goes with it.
Clearing CPU Sets left the core chips advertising the assignment that had just
been removed until the process happened to be reselected - and a rule saved in
between would have captured those cores.
Rules saved from the Process tab context menu were invisible: nothing listed
them, and the Rules tab shows power plan associations, which are a different
thing entirely. They now have their own tab there, saying in plain words what
each rule applies and how it differs from the associations, with a delete that
shares one implementation with the context menu path so the two can never
disagree about which rule belongs to a process. The list is re-read on every
visit to the tab, which is enough while the two views cannot be on screen at
the same time.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
v1.7.1 changed the shipped default CPU assignment mode to AffinityMask because
Automatic applies only Windows CPU Sets, a soft scheduling preference that
leaves the affinity mask in Task Manager unchanged. A new default only reaches a
profile that has no stored value, so every upgrading user kept Automatic and
still saw an affinity feature that appeared to do nothing. Confirmed against the
published 1.7.1 build: a fresh profile started on AffinityMask, an existing one
stayed on Automatic.
CpuAssignmentModeMigrationPolicy moves a stored Automatic to AffinityMask once
per profile and records that it ran. Two flags are needed, not one: without the
"seen" flag a user who closes the app before acknowledging the change would
never learn of it, and without the "migrated" flag a later deliberate return to
Automatic would be undone on the next launch. Both cases are covered by tests.
The change is announced through an overlay modelled on the existing startup
suggestion, so it is the app's own dialog rather than a system message box, and
it is translated into all seven supported languages. It is queued rather than
stacked when the startup suggestion is already up, and takes keyboard focus.
Persistence is deliberately non-fatal: a failed write is retried on the next
launch, where previously it would have fallen into the load handler's catch and
replaced the profile just loaded with defaults, silently swallowing the notice.
An out-of-range stored mode now repairs to the shipped default instead of
Automatic, so corrupt data is not reported back to the user as a choice they
made.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AhS1xyuMPFvxrojERQ4NuY
Follow-ups to the affinity apply fix, from a second review pass.
CpuSetMapping.ResolveCpuSetIds trusted the raw CpuSetIds stored with a saved
rule ahead of the selection's logical processors. Those IDs are opaque and can
name a different processor after a topology change, while GetProcessDefaultCpuSets
still verifies them, so a stale rule silently pinned the wrong CPUs. Coordinates
are now resolved against the current mapping whenever they exist, and every one
must resolve - a partial match surfaces as InvalidTopology instead.
Automatic mode attempted CPU Sets even when the process already had a hard
affinity mask excluding the requested CPUs. Windows will not schedule outside
that mask whatever default CPU Sets are installed, yet the read-back still
verifies, so ThreadPilot reported success for an assignment that could not take
effect. It now goes straight to the hard affinity path in that case, which
actually replaces the restriction. Verified end to end: a process pinned to
0x3 targeting CPUs 4-5 now moves to 0x30 instead of silently staying at 0x3.
Affinity masks are 64-bit patterns, not magnitudes: a mask including CPU 63 is
a negative long, and the "> 0" comparisons discarded it. Replaced with
comparisons against zero so 64-CPU single-group systems are handled.
The per-CPU checkboxes stay read-only by design, but nothing said so, and the
hint first landed in the Grid.Column="2" pane that has been Visibility="Collapsed"
since 91287c9. The hint and tooltips now sit in the visible Advanced Affinity
Picker expander. Context menu rule items explain that saved rules are re-applied
automatically on process start and are separate from the Rules tab.
Also removes ApplyCoreMaskToProcessAsync, which had no RelayCommand attribute
and no callers, corrects an audit message that claimed CPU Sets had failed when
they were deliberately skipped, and fixes "core mask" mistranslations in the
Italian, Spanish, French and Russian locales plus German phrasing.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AhS1xyuMPFvxrojERQ4NuY
A user reported that the CPU affinity feature did nothing when applying a
rule. Two distinct defects were behind it.
ProcessService.SetProcessorAffinity(process, long) silently substituted
SetProcessDefaultCpuSets for the hard affinity write. CPU Sets are only a
soft scheduling hint and leave the mask returned by GetProcessAffinityMask
untouched, so the single caller - AffinityApplyService.ApplyAsync, which
reads the mask back and compares - always reported VerificationMismatch.
The Rules tab path (ProcessMonitorManagerService association core masks)
therefore failed while the affinity never changed. Reproduced on a 16-CPU
machine: requesting 0x3 left the process at 0xFFFF and returned a failure.
The overload now writes the affinity mask it was asked for; soft assignment
keeps its own entry points (CpuAssignmentMode.CpuSets, CpuSelectionAffinityApplier).
The shipped DefaultCpuAssignmentMode was Automatic, which is CPU-Sets-first,
so out of the box "Apply CPU Assignment" produced no change visible in Task
Manager while reporting success. The default is now AffinityMask, and the
CPU Sets result message states that it is a soft preference rather than
claiming "Affinity applied successfully".
Save Current Settings as Rule only captured the core selection while edits
were staged, otherwise falling back to process.ProcessorAffinity - which
soft modes never change - saving a rule pinned to every CPU. It now captures
what the core checkboxes show.
Adds a regression test that spawns a real process and asserts the hard
affinity mask actually changes; it fails on the previous implementation.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AhS1xyuMPFvxrojERQ4NuY
Addresses the audit findings across persistent-rule recovery, settings merge behavior, CPU identity, monitoring lifecycle, notifications, autostart, tray updates, and shutdown disposal. Includes regression coverage and the corrected disabled-monitoring view. CI DevSecOps and CodeQL pass.
Verify persisted Windows tweak state on startup, modernize selection styling, and make in-app updates check every launch, install automatically after consent, preserve settings, and relaunch ThreadPilot.
Add Italian, French, German, Spanish, and Russian localization with Windows language detection, reliable settings persistence, and neutral dialog styling.