fix(gh-monitor): replace OpenClaw cron with launchd — zero polling token cost

This commit is contained in:
2026-03-15 17:30:10 -04:00
parent 9f23deb309
commit 82f0cdb413
2 changed files with 47 additions and 22 deletions

View File

@@ -115,16 +115,16 @@ intervals across a handful of repos, this is nowhere near the limit.
---
## Cron Schedule
## Schedule
Every 5 minutes via OpenClaw cron:
```
{ "kind": "every", "everyMs": 300000 }
```
Every 5 minutes via macOS `launchd` (LaunchAgent plist). `poll.py` runs as a
plain shell process — no agent session, no tokens consumed during polling.
Payload: systemEvent → injects wake text into main session.
The main session is only woken when `poll.py` finds new activity and calls
`openclaw system event`. On a quiet repo this costs zero tokens most of the day.
Can be paused/resumed via OpenClaw cron management without touching the code.
The LaunchAgent can be unloaded/loaded via `launchctl` to pause/resume polling
without touching the code.
---