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

  • /compact has scope: "text" and no nativeName in the command definition
  • Only commands with nativeName and scope !== "text" are registered via Telegram's setMyCommands API
  • Adding /compact to channels.telegram.customCommands has 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

  1. Add nativeName: "compact" and change scope to allow native registration
  2. Add a config option like commands.nativeTextCommands: ["compact"] to explicitly expose text-only commands in the native menu
  3. Allow customCommands to 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

View original on GitHub ↗

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