--channels session disconnects when switching to agent view or opening multiple Claude Code sessions
Resolved 💬 3 comments Opened May 12, 2026 by capmxm-gif Closed May 16, 2026
Summary
Starting Claude Code CLI with --channels (e.g. for a Telegram MCP connection) and then either (a) switching to agent view in the CLI or (b) opening a second Claude Code CLI session causes the --channels session to break and MCP servers (e.g. Telegram) to disconnect.
Steps to Reproduce
- Start Claude Code CLI with
--channelsflag (with at least one MCP server configured, e.g. Telegram) - Either:
- Switch to agent view in the Claude Code CLI, or
- Open a second Claude Code CLI session (any terminal window)
- Observe that the
--channelssession breaks and MCP connections drop
Expected Behavior
Switching views or running concurrent CLI sessions should not affect active --channels sessions or cause MCP disconnections.
Actual Behavior
- Switching to agent view disconnects MCP servers mid-session
- Opening any additional Claude Code CLI session appears to break the
--channelssession - Likely root cause:
--channelsbinds to a single session context; a new session or view switch either steals the connection or creates a conflict
Environment
- Claude Code version: 2.1.139
- OS: Windows 11 Pro 10.0.26200
- MCP affected: Telegram (plugin:telegram)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗