Telegram plugin: no way to clear/reset context remotely
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
- Set up the Telegram plugin
- Leave your computer with a Claude Code session running
- Use Telegram to interact with Claude Code remotely
- Try to clear context by sending "/clear" in Telegram
- 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
/clearcommand 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
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗