mirror of
https://github.com/tiennm99/time-mocker.git
synced 2026-10-12 10:14:17 +00:00
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.