15 Commits

Author SHA1 Message Date
Prime Build d730260541 Prepare ThreadPilot 1.7.0 gaming and signing release (#51) 2026-08-13 01:50:48 +02:00
PrimeBuild-pc 7381a68dbd Release ThreadPilot 1.6.0 CPU assignment modes 2026-08-12 14:58:23 +02:00
PrimeBuild-pc 9f7ba5e4af Fix persistent automation monitoring preference 2026-08-03 17:38:45 +02:00
Prime Build 9553bfd20d Complete measured runtime overhead reductions (#36)
* perf: defer inactive view initialization

* perf: eliminate redundant powercfg refreshes

* perf: suspend hidden log updates

* perf: back off WMI recovery

* perf: reuse static process metadata

* test: cover low-overhead runtime policies
2026-07-12 08:54:30 +02:00
Prime Build fbfe010fb0 Fix persistent priority reversion after process startup (#33) 2026-07-11 19:17:24 +02:00
Prime Build 7953fc7774 Refactor repo with ponytail cleanup (#31) 2026-06-24 17:52:45 +02:00
Prime Build 91287c9860 Fix startup binding and prepare v1.2.0 pre-release (#22)
* Fix startup binding and prep v1.2.0

* Polish v1.2.0 validation UX

* Fix final v1.2.0 validation polish

* Make Activity Logs a ThreadPilot audit trail

* Fix high scheduling registry value

* Polish process list and automation settings UX

* Fix process context menu separator styling

* Theme process context menu visuals

* Stabilize process context menu styling

* Remove process menu icon gutter

* Polish startup and idle process refresh

* Finalize PR22 release polish
2026-05-23 14:28:24 +02:00
Prime Build dd45b38007 Add Apply now and save as rule flow (#20)
Add Apply now and save as rule flow

Add explicit opt-in persistent rule creation from Process tab actions.

- Add ProcessRuleCreationService for creating/updating persistent process rules
- Add Rules submenu with Save Current Settings as Rule and Apply Affinity and Save as Rule
- Match existing rules by executable path or process name fallback to avoid duplicates
- Preserve rule Id and CreatedAt when updating existing rules
- Prefer CpuSelection and only save legacy affinity when safely representable
- Avoid saving Normal CPU priority from automatic current-state capture
- Block Realtime priority and unsafe affinity persistence with controlled messages
- Save memory priority when known
- Keep existing normal context actions from creating persistent rules
- Add tests for create/update, path/name matching, CpuSelection, legacy safety, priority capture, memory priority, no-action failure and ViewModel commands

No full rules editor, modal confirmation flow, registry/IFEO, Windows Service, diagnostics changes, version bump or tag changes.
2026-05-22 12:00:09 +02:00
Prime Build b45fcf16f1 Add Process tab context menu actions (#19)
Add Process tab context menu actions

Add a lightweight right-click context menu to Process tab rows using existing safe process action paths.

- Add row context menu for Process tab DataGrid rows
- Add row-specific Apply Affinity command using ProcessAffinityApplyCoordinator
- Add Clear CPU Sets action using the safe CPU Sets clear path
- Add CPU priority actions while keeping Realtime blocked
- Add memory priority actions through ProcessMemoryPriorityService
- Add Open Executable Location, Copy Process Info and Refresh Process Info actions
- Refresh selected-process summary after context actions
- Keep context menu actions from creating persistent rules
- Add tests for row-specific affinity, CPU priority, memory priority, copy/open/refresh, CPU Sets clear and no rule creation

No save-as-rule flow, rules editing UI, persistent rule creation, affinity core changes, memory-priority backend changes, diagnostics changes, version bump or tag changes.
2026-05-22 00:52:38 +02:00
Prime Build 6eec1bab3f Add selected process summary to Process tab (#18)
Add selected process summary to Process tab

Add a lightweight current-process status strip under the Process tab process list without reintroducing dashboard-style monitoring.

- Add SelectedProcessSummaryViewModel populated from selected ProcessModel data
- Show selected process name, PID, path, CPU priority, memory priority, affinity, rule status, CPU usage and memory usage
- Read memory priority once on selection when available
- Check saved persistent rule status through the existing rule store and matcher
- Avoid PerformanceMonitoringService, diagnostics/live monitoring and timers
- Guard async summary updates so stale memory/rule lookups cannot overwrite newer selections
- Update summary after refreshed process fields only when the selected process is still current
- Add tests for no-selection state, selection changes, memory priority, rule status, no performance dependency and stale async update protection

No context menu, save-as-rule flow, rules editing UI, diagnostics redesign, background monitoring, version or tag changes.
2026-05-22 00:23:35 +02:00
Prime Build cbe2402f1b Migrate Process tab manual affinity apply to CpuSelection (#16)
Migrate Process tab manual affinity apply to CpuSelection

Route manual Process tab affinity operations through a topology-aware coordinator so CpuSelection and CPU Sets are preferred over legacy long masks.

- Add ProcessAffinityApplyCoordinator for manual Process tab affinity apply
- Prefer CoreMask.CpuSelection when available
- Migrate legacy BoolMask selections to CpuSelection when topology is available
- Block unsafe legacy fallback for selections above CPU64
- Keep legacy long mask fallback only for safe single-group <=64 selections
- Wire SetAffinity, ApplyCoreMaskToProcessAsync and QuickApplyAffinityAndPowerPlan through the coordinator
- Document CoreMask.ToProcessorAffinity as legacy-only
- Ensure ProcessViewModel fallback coordinator receives topology provider
- Add regression tests for CPU64, multi-group, safe legacy fallback, migration and protected-process messages

No UI redesign, preset generator, memory priority, persistent rules engine, migration logic, version or tag changes.
2026-05-20 22:25:34 +02:00
Prime Build 9f56303e93 CPU topology v2 phase 7: improve affinity errors and priority guardrails (#13)
Improve affinity errors and priority guardrails

Centralize safe user-facing messages for process affinity, CPU Sets, protected processes, access denied cases, topology errors and priority guardrails.

- Add CpuSetApplyResult detailed path while preserving existing bool CPU Sets APIs
- Use detailed CPU Sets results in the CpuSelection affinity flow
- Centralize affinity/priority messages in ProcessOperationUserMessages
- Improve AccessDenied, anti-cheat/protected, invalid topology, process exited and legacy fallback blocked messages
- Add High priority warning
- Block Realtime priority for direct apply, profile load and registry priority requests
- Audit and log blocked Realtime priority attempts
- Prevent critical status messages from being cleared immediately
- Add tests for affinity messages, CPU Sets detailed failures, priority guardrails and status clearing

No persistent rules engine, registry affinity, preset/profile migration, version or tag changes.
2026-05-20 16:03:34 +02:00
Prime Build 4fceda163d Perf/professional hardening (#4)
* Improve background refresh and process detection

* Harden affinity and power plan automation

* Fix passive process refresh failures

* Improve UX terminology and process layout

* Polish UX layout and empty states

* Expand core service test coverage
2026-05-09 23:15:49 +02:00
PrimeBuild-pc 2382c47789 Reduce background refresh overhead 2026-05-09 12:02:42 +02:00
PrimeBuild-pc 594a3c4b85 Refactor MainWindow behaviors into partial class
Move and centralize MainWindow behavior/logic into a new partial file and tidy related viewmodel/service code.

- Add MainWindow.Behaviors.partial.cs containing initialization, loading overlay, view model loading, service setup, system tray management, monitoring lifecycle, keyboard shortcuts, elevation/performance overlays, graceful shutdown and related helpers (moved out of MainWindow.xaml.cs).
- Remove duplicated behavior code from MainWindow.xaml.cs.
- Add ProcessViewModel.Behaviors.partial.cs and update ViewModels/ProcessViewModel.cs to separate behavior logic from core viewmodel.
- Update Models/ProcessModel.cs and services (GameDetectionService.cs, ProcessMonitorService.cs, ProcessService.cs) to align with the refactor and improve robustness (timeouts, fallbacks, logging and error handling).

Reason: reduce MainWindow.xaml.cs size, improve separation of concerns and maintainability, and introduce more resilient startup/shutdown and tray/update logic.
2026-04-15 23:13:11 +02:00