Skip to content

Fix Telegram agent group replies#170

Merged
pmbstyle merged 1 commit into
mainfrom
fix/telegram-agent-bot-group-routing
Jun 12, 2026
Merged

Fix Telegram agent group replies#170
pmbstyle merged 1 commit into
mainfrom
fix/telegram-agent-bot-group-routing

Conversation

@pmbstyle

Copy link
Copy Markdown
Owner

Summary

  • Allow Telegram group messages authored by other bots to reach the semantic group-addressing gate.
  • Keep self-authored bot messages and private bot-authored messages skipped to avoid echo loops.
  • Add regression coverage for other-bot group messages, self messages, and private bot messages.

Why

Agent-to-agent replies in Telegram groups were still blocked before routing because inbound messages from other bots were treated as passive observations and returned early. That prevented the new semantic loop guard from ever seeing direct questions from another agent.

Validation

  • uv run pytest tests/test_telegram_react_tag_sanitization.py tests/test_group_addressing.py tests/test_whatsapp_runtime.py
  • uv run ruff check src/octopal/channels/group_addressing.py src/octopal/channels/telegram/handlers.py src/octopal/channels/whatsapp/runtime.py tests/test_group_addressing.py tests/test_whatsapp_runtime.py tests/test_telegram_react_tag_sanitization.py
  • uv run black --check src/octopal/channels/group_addressing.py src/octopal/channels/telegram/handlers.py src/octopal/channels/whatsapp/runtime.py tests/test_group_addressing.py tests/test_whatsapp_runtime.py tests/test_telegram_react_tag_sanitization.py

@pmbstyle pmbstyle self-assigned this Jun 11, 2026
@pmbstyle pmbstyle marked this pull request as ready for review June 12, 2026 00:01
@pmbstyle pmbstyle merged commit cdf154c into main Jun 12, 2026
4 checks passed
@pmbstyle pmbstyle deleted the fix/telegram-agent-bot-group-routing branch June 12, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant