Skip to content

feat(gateway): silent tool progress messages on Telegram - #6646

Closed
byjk wants to merge 4 commits into
NousResearch:mainfrom
byjk:feat/telegram-silent-tool-progress
Closed

feat(gateway): silent tool progress messages on Telegram#6646
byjk wants to merge 4 commits into
NousResearch:mainfrom
byjk:feat/telegram-silent-tool-progress

Conversation

@byjk

@byjk byjk commented Apr 9, 2026

Copy link
Copy Markdown

Summary

Tool progress messages (e.g. ⚙️ terminal: "whoami") are now sent with:

  • disable_notification=True — no sound/vibration alerts on every tool call
  • disable_web_page_preview=True — link previews suppressed to keep messages compact

This significantly reduces notification spam and visual clutter when the agent runs multiple tools in sequence.

Changes

  • gateway/platforms/telegram.py: Read metadata["silent"] and metadata["no_preview"], pass disable_notification and disable_web_page_preview to both Markdown and plaintext send_message() calls
  • gateway/run.py: Set silent=True and no_preview=True in progress metadata

Behavior

Message type Notification Link preview
Tool progress Silent (disabled) Disabled
Final agent response Normal (enabled) Enabled

Test Plan

  • Manual test: sent commands via Telegram, confirmed tool progress arrives without sound/vibration
  • Link previews do not appear in progress messages containing URLs
  • Final agent responses still notify normally and show link previews

@byjk
byjk force-pushed the feat/telegram-silent-tool-progress branch from d5b37de to 05f4f79 Compare April 15, 2026 10:41
@byjk byjk changed the title feat(gateway): send tool progress messages silently on Telegram feat(gateway): silent tool progress messages on Telegram Apr 15, 2026
byjk added 3 commits April 15, 2026 12:46
- Telegram: send tool progress with disable_notification=True (no sound/vibration)
- Telegram: add delete_message() via bot.delete_message()
- Base: add delete_message() stub
- Gateway: auto-delete progress messages after final response
- Config: add display.delete_progress_messages option
…sages

Silent mode was lost during merge. This patch restores:
- telegram.py: read metadata["silent"] → disable_notification in send_message
- run.py: set silent=True in _progress_metadata for all progress messages
Adds no_preview metadata flag to suppress web page previews in
progress messages, keeping them compact and distraction-free.
@byjk
byjk force-pushed the feat/telegram-silent-tool-progress branch from 05f4f79 to e6f2b0b Compare April 15, 2026 10:57
@alt-glitch alt-glitch added type/feature New feature or request comp/gateway Gateway runner, session dispatch, delivery platform/telegram Telegram bot adapter labels Apr 21, 2026
@byjk byjk closed this May 25, 2026
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 platform/telegram Telegram bot adapter type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants