Repository navigation
Skip reply alerts for silent scheduled runs - #64
Closed
altextreme wants to merge 1 commit into
Closed
altextreme wants to merge 1 commit into
altextreme wants to merge 1 commit into
Conversation
A cron run that answers with Hermes's silence marker ([SILENT]) is suppressed on its delivery lane by the scheduler, but the post_llm_call reply alert (added in 2.17.0) still pushed the raw marker to the phone. Scheduled sessions now check the reply with Hermes's own gateway.response_filters.is_autonomous_silence_response, the predicate the scheduler uses, and keep no reply when it matches. That covers both the immediate alert and the on_session_end fallback. Failed runs still alert, and interactive chats are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
promptclickrun
added a commit
that referenced
this pull request
Sep 28, 2026
Includes #64: a scheduled run answering [SILENT] no longer pushes \"[SILENT]\". Extends it to all of Hermes' silence rules (gateway/response_filters.py): loose rule for scheduled tasks and webhooks; exact rule elsewhere, silent only when no person is waiting (off-screen notes, internal notifications, messages not addressed to the agent); a person's message that got only a marker alerts Hermes' own notice. Older Hermes keeps every bare marker quiet. Co-authored-by: Anthony <anthony@tackettdesign.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Thanks, Anthony! This was spot on. It's now merged as part of #67 (2.18.1), with your commit kept and you credited as co-author. #67 builds on it to follow the rest of Hermes' silence rules (webhooks, internal notifications, and a notice when a person's message gets only a marker). Closing this one as included there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Since 2.17.0's faster reply alerts, a cron run that answers with Hermes's silence marker (
[SILENT]) still reaches the phone as a push that reads[SILENT].The Hermes scheduler correctly suppresses delivery on the job's own lane (e.g. Telegram):
agent returned [SILENT] — skipping delivery. ButManagedNotifications._observequeuesscheduled.completedfrompost_llm_callwith the rawassistant_responseand never checks for silence. Theon_session_endfallback has the same gap.On a 15-minute restock watch, that meant a
[SILENT]push every quarter hour.Fix
_is_scheduled_silence(), which uses Hermes's owngateway.response_filters.is_autonomous_silence_response. That's the same predicate the scheduler uses, so the two can't drift. If the import isn't available, it falls back to a bracketed-prefix check.platform == "cron"or acron_*session id), a silent reply is not stored. That covers both the immediatepost_llm_callalert and theon_session_endfallback.[SILENT]still alerts. Non-silent scheduled replies are unchanged._rich_textcollapses newlines and would break the predicate's first-line and last-line rules.Tests
test_silent_scheduled_run_sends_no_alert:[SILENT]and[SILENT] No qualifying restock.queue nothing, while a real result still sendsscheduled.completedand a failure still sendsscheduled.failed. This test fails onmainand passes with the fix.test_silence_marker_in_chat_still_alerts: chats are unaffected.tests.test_managed_notifications,test_home_work_completions,test_managed_approval_notificationsandtest_notification_card_identityall pass (41 tests).Verified live on a Hermes host running 2.17.0 plus this patch: the next silent cron run queued no notification events, while the two silent runs before the patch each queued one.
🤖 Generated with Claude Code