Telegram plugin: no way to clear/reset context remotely

Resolved 💬 3 comments Opened Mar 27, 2026 by bernie-lenin Closed Mar 30, 2026

Problem

The Telegram plugin is great for interacting with Claude Code remotely (away from your computer), but there's no way to clear context from Telegram. /clear is a Claude Code UI command — it can't be triggered by a Telegram message.

This significantly limits remote use. Context accumulates across a long session, and the only fix requires being at the computer to type /clear in the Claude Code interface.

Steps to Reproduce

  1. Set up the Telegram plugin
  2. Leave your computer with a Claude Code session running
  3. Use Telegram to interact with Claude Code remotely
  4. Try to clear context by sending "/clear" in Telegram
  5. Claude cannot clear its own context from a channel message

Expected Behavior

Sending something like /clear via Telegram should reset the context of the running session, or start a fresh one.

Suggested Solutions

  • Recognize a /clear command from Telegram and trigger a context reset programmatically
  • Support a "new session" concept that the Telegram plugin can invoke
  • Document the limitation clearly and suggest workarounds (e.g., start fresh session before leaving the computer)

Why This Matters

The whole point of the Telegram plugin is remote access. Without context management, sessions degrade over time and users have no recourse unless they return to the computer.

🤖 Generated with Claude Code

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗