claude-code - 💡(How to fix) Fix Telegram plugin: Channel notifications not waking Claude Code from idle state [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45404Fetched 2026-04-09 08:06:07
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
0
Participants
Timeline (top)
labeled ×6closed ×1

The Telegram plugin receives messages and successfully delivers MCP notifications/claude/channel notifications to Claude Code, but Claude Code does not wake from its idle state to process them. Telegram messages are silently ignored.

Root Cause

The Telegram plugin receives messages and successfully delivers MCP notifications/claude/channel notifications to Claude Code, but Claude Code does not wake from its idle state to process them. Telegram messages are silently ignored.

Code Example

write(12, "{\"method\":\"notifications/claude/channel\",\"params\":{\"content\":\"hallo\",\"meta\":{\"chat_id\":\"REDACTED\",\"message_id\":\"2113\",...}},\"jsonrpc\":\"2.0\"}\n", 211) = 211

---

read(33, "{\"method\":\"notifications/claude/channel\",\"params\":{\"content\":\"hallo\",\"meta\":{\"chat_id\":\"REDACTED\",\"message_id\":\"2115\",...}},\"jsonrpc\":\"2.0\"}\n", 65536) = 211
RAW_BUFFERClick to expand / collapse

Description

The Telegram plugin receives messages and successfully delivers MCP notifications/claude/channel notifications to Claude Code, but Claude Code does not wake from its idle state to process them. Telegram messages are silently ignored.

Environment

  • Claude Code versions tested: 2.1.87, 2.1.94, 2.1.96 (all affected)
  • Telegram plugin: 0.0.4
  • OS: Ubuntu (Hetzner VPS)
  • Started via systemd service in tmux with --dangerously-skip-permissions --permission-mode bypassPermissions

Steps to Reproduce

  1. Start Claude Code with the Telegram plugin enabled
  2. Give Claude an initial prompt ("Answer Telegram messages")
  3. Claude responds and goes idle (waiting for input)
  4. Send a Telegram message to the bot
  5. The plugin receives the message and sends an MCP notification
  6. Claude Code does NOT wake up to process it

Evidence via strace

Plugin (bun) successfully sends the notification:

write(12, "{\"method\":\"notifications/claude/channel\",\"params\":{\"content\":\"hallo\",\"meta\":{\"chat_id\":\"REDACTED\",\"message_id\":\"2113\",...}},\"jsonrpc\":\"2.0\"}\n", 211) = 211

Claude Code process (node) successfully READS the notification:

read(33, "{\"method\":\"notifications/claude/channel\",\"params\":{\"content\":\"hallo\",\"meta\":{\"chat_id\":\"REDACTED\",\"message_id\":\"2115\",...}},\"jsonrpc\":\"2.0\"}\n", 65536) = 211

But Claude Code remains idle and does not process the message or reply.

Additional context

  • No errors in plugin logs (catch block for failed delivery is never triggered)
  • bypass permissions is enabled — no permission prompts blocking
  • All Telegram plugin tools are in the allow list (settings.local.json)
  • Bot token is valid (getMe returns OK)
  • No webhook set, polling mode works correctly
  • This used to work and broke with a recent update
  • When Claude Code is asked directly in the terminal "Did you receive a Telegram message?", it says "No"

Expected Behavior

Claude Code should wake from idle when receiving a notifications/claude/channel MCP notification and process the incoming message, as it did in previous versions.

extent analysis

TL;DR

The most likely fix is to investigate and potentially revert or patch the recent update that introduced the issue, as the problem seems to be related to a change in Claude Code's behavior.

Guidance

  • Review the changelogs for Claude Code versions 2.1.87, 2.1.94, and 2.1.96 to identify any changes that could be causing the issue.
  • Verify that the notifications/claude/channel MCP notification is being properly handled by Claude Code when it is not in idle state, to rule out any issues with the notification itself.
  • Check if there are any other settings or configurations that have changed recently, which could be contributing to the problem.
  • Consider testing an earlier version of Claude Code to confirm that the issue is indeed related to a recent update.

Example

No specific code snippet can be provided without more information about the internal workings of Claude Code and the Telegram plugin.

Notes

The fact that Claude Code used to work correctly and the issue appeared after a recent update suggests that the problem is likely related to a change in the code. However, without more information about the specific changes made in the recent updates, it is difficult to provide a more specific solution.

Recommendation

Apply workaround: Given the information provided, it seems that the issue is related to a recent update, and reverting or patching this update may be the most straightforward solution. However, without more information, it is difficult to provide a more specific recommendation.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING