mirror of
https://github.com/tiennm99/time-mocker.git
synced 2026-10-18 02:15:07 +00:00
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:
1 parent
f4bd35ae5b
commit
ffab962360
10 files changed
+870
-194
No files matched your search
Generated
+1
@@ -2466,6 +2466,7 @@ dependencies = [
|
||||
"embed-manifest",
|
||||
"globset",
|
||||
"regex",
|
||||
"ron",
|
||||
"serde",
|
||||
"sysinfo 0.32.1",
|
||||
"tempfile",
|
||||
|
||||
Reference in new issue
Block a user