From 9c34c0401b6af7e0667571d22a17eb4b27797b5c Mon Sep 17 00:00:00 2001 From: Hans Heinemann Date: Mon, 16 Mar 2026 00:46:42 -0400 Subject: [PATCH] fix(gh-monitor): use absolute paths for gh and openclaw (launchd has no PATH) --- tools/gh-monitor/poll.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/gh-monitor/poll.py b/tools/gh-monitor/poll.py index 9edb715..8d7637b 100644 --- a/tools/gh-monitor/poll.py +++ b/tools/gh-monitor/poll.py @@ -62,7 +62,7 @@ def save_state(state: dict, path: Path) -> None: def gh_api(endpoint: str) -> list | dict: result = subprocess.run( - ["gh", "api", "--paginate", endpoint], + ["/usr/local/bin/gh", "api", "--paginate", endpoint], capture_output=True, text=True, ) @@ -135,7 +135,7 @@ def new_events_since(events: list[dict], cursor_ts: str, seen_ids: set) -> list[ def notify(text: str) -> None: result = subprocess.run( - ["openclaw", "system", "event", "--text", text, "--mode", "now"], + ["/Users/hansheinemann/.nvm/versions/node/v22.22.1/bin/openclaw", "system", "event", "--text", text, "--mode", "now"], capture_output=True, text=True, ) @@ -190,7 +190,7 @@ def dispatch_agent(repo_slug: str, pr: dict, event: dict) -> None: try: result = subprocess.run( [ - "openclaw", "cron", "add", + "/Users/hansheinemann/.nvm/versions/node/v22.22.1/bin/openclaw", "cron", "add", "--name", job_name, "--at", "1m", "--session", "isolated",