Skip to content

fix(gateway): suppress noisy chat lifecycle notices#23119

Closed
Quisharoo wants to merge 2 commits into
NousResearch:mainfrom
Quisharoo:fix/gateway-pa-noise
Closed

fix(gateway): suppress noisy chat lifecycle notices#23119
Quisharoo wants to merge 2 commits into
NousResearch:mainfrom
Quisharoo:fix/gateway-pa-noise

Conversation

@Quisharoo

Copy link
Copy Markdown

Summary

  • suppress compression lifecycle notices on Telegram/Discord so chat platforms do not receive standalone context-management messages
  • keep those lifecycle notices available on non-chat surfaces such as CLI/TUI
  • suppress literal SKIP webhook responses for GitHub comment delivery instead of posting the sentinel as a comment

Test Plan

  • scripts/run_tests.sh tests/gateway/test_gateway_status_noise.py tests/gateway/test_webhook_integration.py -q

Copilot AI review requested due to automatic review settings May 10, 2026 10:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces “status noise” from the gateway on chat platforms by filtering out compression-related lifecycle updates (which otherwise arrive as standalone messages), while keeping those notices available in non-chat contexts. It also prevents the webhook GitHub-comment delivery path from posting a literal SKIP sentinel as a comment.

Changes:

  • Added gateway-side suppression for compression-related lifecycle status messages on Telegram/Discord.
  • Updated GitHub comment delivery to treat a literal SKIP response as “no-op deliver”.
  • Added targeted tests covering both the status suppression behavior and the SKIP sentinel suppression.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
gateway/run.py Adds a helper + filtering in the status callback to suppress compression lifecycle notices for Telegram/Discord.
gateway/platforms/webhook.py Suppresses literal SKIP agent output for github_comment delivery to avoid posting it as a PR comment.
tests/gateway/test_gateway_status_noise.py New unit tests validating which lifecycle messages are suppressed/retained by platform and event type.
tests/gateway/test_webhook_integration.py Adds an integration test ensuring SKIP does not invoke gh pr comment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery platform/webhook Webhook / API server labels May 10, 2026
Add persistent action requests and Telegram callback support for webhook-delivered action cards. Local action handlers, such as Colm's Sentry Create PR flow, register at runtime via plugins instead of living in Hermes core.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have platform/webhook Webhook / API server type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants