[bug] SchedulerWatch sends a false 'Scheduler frozen' text after every normal reboot:…
What happened
SchedulerWatch sends a false 'Scheduler frozen' text after every normal reboot: launchd login burst of 'domain in on-demand-only mode' lines counts as frozen although no job is pended
Summary
SchedulerWatch texts "Scheduler frozen" after every normal reboot.
check() in LIFEOS/TOOLS/SchedulerWatch.ts sets frozen: logHits > 0, where logHits counts launchd lines containing "domain in on-demand-only mode" over the last 6 minutes. When the user logs in (auto-login here), launchd's gui/pended was empty (no LifeOS interval job stuck), yet the watcher sent the "Scheduler frozen" text one minute after boot ("0 LifeOS jobs are stuck ... Frozen since
Expected: a normal boot does not count as a freeze. Possible fixes: require at least one pended LifeOS job (pended.length > 0) before texting, or ignore log hits inside the first few minutes after kern.boottime.
macOS 27 (Darwin 27.0.0), Apple Silicon Mac
Details
- Kind: bug
- LifeOS version: 8.761.0
Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.
[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler
Thanks @IvanLeontev-stack. SchedulerWatch now reports a freeze only when launchd's "on-demand-only mode" lines and at least one pended LifeOS interval job are both present, so the burst of those lines for Apple's own agents after a login no longer texts "Scheduler frozen". If the log hits are there but a launchctl probe failed, the result is "unknown" (exit 3), not healthy and not frozen. Tests cover a boot burst with nothing pended, a real freeze, a pended job without log hits and the failed-probe case. This lands in the next release.