fix(gh-monitor): use system event for Signal notification instead of broken announce delivery

This commit is contained in:
2026-03-16 00:32:51 -04:00
parent 1909389c33
commit 505fe09ed3

View File

@@ -179,8 +179,10 @@ def dispatch_agent(repo_slug: str, pr: dict, event: dict) -> None:
f"'Got it, looking into this now.' This must happen first, before any code changes.\n" f"'Got it, looking into this now.' This must happen first, before any code changes.\n"
f"3. If the comment requests a code change, implement it on the PR branch, " f"3. If the comment requests a code change, implement it on the PR branch, "
f"commit, and push.\n" f"commit, and push.\n"
f"4. Post a follow-up reply with what you did (or why no change was needed).\n" f"4. Post a follow-up GitHub reply with what you did (or why no change was needed).\n"
f"5. Keep replies concise and technical." f"5. Run this exact command when done to notify Andrew on Signal:\n"
f" openclaw system event --text \"[gh-monitor] PR #{number}: <one line summary of what you did>\" --mode now\n"
f"6. Keep replies concise and technical."
) )
job_name = f"gh-monitor-pr{number}-{event.get('id', 'evt')}" job_name = f"gh-monitor-pr{number}-{event.get('id', 'evt')}"
@@ -194,8 +196,7 @@ def dispatch_agent(repo_slug: str, pr: dict, event: dict) -> None:
"--session", "isolated", "--session", "isolated",
"--message", message, "--message", message,
"--delete-after-run", "--delete-after-run",
"--announce", "--no-deliver",
"--to", "uuid:6f600cd9-3223-4d4b-b783-b944ebf9fb8f",
"--timeout-seconds", "300", "--timeout-seconds", "300",
], ],
capture_output=True, capture_output=True,