fix(ui): detect PID reuse, verify delta channel, correct rule and date handling

Hold one process handle across every identity check and injection so the PID
cannot be recycled mid-inject, and prune injected entries whose start time no
longer matches. Read the delta back before reporting a successful injection
so a dead channel is no longer a silent no-op mock. Match rules
case-insensitively and skip the path arm when the path is empty, surface
invalid patterns instead of swallowing them, and stop retrying a failed
auto-inject target until its PID is reused. Restore the last fake time on
startup, reset "Now" to exactly zero delta, clamp the whole date to range so
a boundary shift no longer jumps a year, and default missing persisted fields
so one bad field cannot wipe all rules. Show a message box on release startup
failure, and cache compiled rules between scans.
This commit is contained in:
tiennm99 committed 2026-09-21 16:13:27 +07:00
1 parent f4bd35ae5b
commit ffab962360
10 files changed
+870 -194

No files matched your search

Generated
+1
View File
@@ -2466,6 +2466,7 @@ dependencies = [
"embed-manifest",
"globset",
"regex",
"ron",
"serde",
"sysinfo 0.32.1",
"tempfile",