Feature Request: Allow `/compact` command to appear in Telegram native command menu
Resolved 💬 2 comments Opened Feb 6, 2026 by AceWalkerAI Closed Feb 6, 2026
Summary
The /compact command is currently defined with scope: "text", which prevents it from appearing in Telegram's native command menu. Users must manually type /compact to use it, even though it's a commonly used command for managing context window.
Current Behavior
/compacthasscope: "text"and nonativeNamein the command definition- Only commands with
nativeNameandscope !== "text"are registered via Telegram'ssetMyCommandsAPI - Adding
/compacttochannels.telegram.customCommandshas no effect since it's handled at the Gateway level, not the agent level
Requested Behavior
Allow /compact to be registered as a native Telegram command so it appears in the / command menu, similar to /status, /new, and other built-in commands.
Possible Solutions
- Add
nativeName: "compact"and changescopeto allow native registration - Add a config option like
commands.nativeTextCommands: ["compact"]to explicitly expose text-only commands in the native menu - Allow
customCommandsto override/include Gateway-level commands
Use Case
Users frequently need to compact context to free up token space. Having /compact visible in the command menu improves discoverability and UX, especially for users who don't memorize all available commands.
Environment
- OpenClaw version: 2026.2.3-1
- Channel: Telegram
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗