From f304f725d8f5bfe611cb0d38eed36341d4e70503 Mon Sep 17 00:00:00 2001 From: cmsjade5000 Date: Thu, 28 May 2026 10:24:44 -0400 Subject: [PATCH] fix(orion): suppress inbox maintenance telegram noise --- scripts/install_orion_assistant_crons.sh | 2 +- scripts/orion_local_maintenance_runner.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install_orion_assistant_crons.sh b/scripts/install_orion_assistant_crons.sh index ab5d1b83..7c69dbae 100755 --- a/scripts/install_orion_assistant_crons.sh +++ b/scripts/install_orion_assistant_crons.sh @@ -173,7 +173,7 @@ upsert_job() { CMD1="Use system.run exactly once, without elevated mode and without a TTY, to execute exactly: python3 scripts/assistant_status.py --cmd refresh --json. Do not request elevated execution. Ignore stdout/stderr unless it fails. Then respond exactly NO_REPLY." CMD2="Use system.run exactly once, without elevated mode and without a TTY, to execute exactly: python3 scripts/email_triage_router.py --from-inbox orion_gatewaybot@agentmail.to --limit 20 --apply. Do not request elevated execution. Ignore stdout/stderr unless it fails. Then respond exactly NO_REPLY." -CMD3="Use system.run exactly once, without elevated mode and without a TTY, to execute exactly: python3 scripts/inbox_cycle.py --repo-root . --runner-max-packets 4 --stale-hours 24 --notify-max-per-run 8. Do not request elevated execution. Ignore stdout/stderr unless it fails. Then respond exactly NO_REPLY." +CMD3="Use system.run exactly once, without elevated mode and without a TTY, to execute exactly: ORION_SUPPRESS_TELEGRAM=1 python3 scripts/inbox_cycle.py --repo-root . --runner-max-packets 4 --stale-hours 24 --notify-max-per-run 8. Do not request elevated execution. Ignore stdout/stderr unless it fails. Then respond exactly NO_REPLY." CMD4="Use system.run exactly once, without elevated mode and without a TTY, to execute exactly: python3 scripts/orion_error_db.py --repo-root . review --window-hours 24 --apply-safe-fixes --escalate-incidents --json. Do not request elevated execution. Ignore stdout/stderr unless it fails. Then respond exactly NO_REPLY." CMD5="Use system.run exactly once, without elevated mode and without a TTY, to execute exactly: AUTO_OK=1 python3 scripts/session_maintenance.py --repo-root . --agent main --fix-missing --apply --doctor --min-missing 50 --min-reclaim 25 --json. Do not request elevated execution. Ignore stdout/stderr unless it fails. Then respond exactly NO_REPLY." CMD6="Use system.run exactly once, without elevated mode and without a TTY, to execute exactly: python3 scripts/orion_incident_bundle.py --repo-root . --write-latest --json. Do not request elevated execution. Ignore stdout/stderr unless it fails. Then respond exactly NO_REPLY." diff --git a/scripts/orion_local_maintenance_runner.sh b/scripts/orion_local_maintenance_runner.sh index 25208efc..f628f4ef 100755 --- a/scripts/orion_local_maintenance_runner.sh +++ b/scripts/orion_local_maintenance_runner.sh @@ -53,7 +53,7 @@ PY case "${job}" in assistant-inbox-notify) - exec /usr/bin/python3 scripts/inbox_cycle.py --repo-root "${repo_root}" --runner-max-packets 4 --stale-hours 24 --notify-max-per-run 8 + exec /usr/bin/env ORION_SUPPRESS_TELEGRAM=1 /usr/bin/python3 scripts/inbox_cycle.py --repo-root "${repo_root}" --runner-max-packets 4 --stale-hours 24 --notify-max-per-run 8 ;; assistant-email-triage) exec /usr/bin/python3 scripts/email_triage_router.py --from-inbox orion_gatewaybot@agentmail.to --limit 20 --apply