Telegram channel DMs not waking idle session without @mention
Description
When using the official Telegram channel plugin (claude-plugins-official/external_plugins/telegram), DM messages from an allowlisted user do not reliably wake an idle Claude Code session. Messages only seem to be processed when the user includes an @botusername mention.
Expected behavior
DMs from allowlisted users should wake the session and be processed regardless of whether the message contains an @mention. The @mention requirement should only apply to group chats with requireMention: true.
Observed behavior
- Messages with
@botusername→ consistently delivered and processed - Messages without
@botusername→ often sit unprocessed until the next interaction or @mention
Analysis
The Telegram MCP server's gate logic correctly delivers all DMs from allowlisted users (no mention check for chatType === 'private' — see server.ts line 223-224). The MCP notification is sent via notifications/claude/channel. The issue appears to be at the Claude Code runtime level — inbound MCP channel notifications may not trigger a new turn when the session is idle.
Environment
- Claude Code: 2.1.97
- Telegram plugin: v0.0.4 (
claude-plugins-official) - Platform: macOS (Darwin 24.6.0)
- DM policy:
pairing, user is onallowFromlist
Reproduction
- Set up Telegram channel plugin with an allowlisted user
- Let the Claude Code session go idle (no active turn)
- Send a DM without @mention → message is not processed
- Send a DM with @mention → message is processed immediately
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗