[Bug] Telegram channel connection lost after navigating to Agents View and returning
Bug Description
Title: Telegram --channels connection breaks after navigating to Agents View and back
Environment:
- Claude Code, Telegram plugin (telegram@claude-plugins-official, v0.0.6)
- macOS (Darwin 25.6.0)
- Session launched with: claude --channels plugin:telegram@claude-plugins-official
Steps to reproduce:
1. Start a fresh session with the Telegram channel attached (claude --channels plugin:telegram@claude-plugins-official). Telegram chat works — messages flow both ways.
2. Press the left arrow twice to leave the session for the Agents View.
3. Return to the same session from Agents View.
Expected: The Telegram channel stays bound to the session; messages keep flowing after returning.
Actual: Telegram communication is dead after returning. The session no longer receives or responds to Telegram messages.
Diagnosis (what I verified):
- At the moment of failure there is exactly one healthy, recently-started Telegram poller process (bun run …claude-plugins-official/telegram), parented to the correct claude --channels …telegram session. No orphaned pollers, no duplicate pollers, no 409 conflict at that point.
- So this is not a multi-poller / token-contention issue — the process layer is healthy. The session↔channel binding inside Claude Code appears to be lost on Agents View navigation and is not re-established on return.
- A SessionStart hook with matcher resume does not fire on returning from Agents View, suggesting the return is not registered as a resume (or any) session event.
- Only a full restart of the channel session reliably restores Telegram.
Impact: Any use of Agents View while running a --channels session silently kills the channel, with no indication to the user that it's disconnected.
Suggested fix: Re-bind (or keep alive) the channel subscription when a --channels session is re-entered from Agents View, and/or surface a clear "channel disconnected" indicator instead of failing silently.
Environment Info
- Platform: darwin
- Terminal: xterm-256color
- Version: 2.1.168
- Feedback ID: 95a432e5-83cf-4b1c-b1e2-24276c799299
Errors
[]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗