openclaw - 💡(How to fix) Fix Regression: Plugin commands fail to intercept agent run on Telegram (v2026.5.4 still affected) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#78221Fetched 2026-05-07 03:39:30
View on GitHub
Comments
1
Participants
2
Timeline
8
Reactions
2
Timeline (top)
mentioned ×3subscribed ×3closed ×1commented ×1

Despite the fix reported in #77384 (shipped in v2026.5.3), custom plugin commands registered via api.registerCommand() are still failing to intercept agent runs in specific scenarios.

The LLM (agent) continues to respond to registered slash commands instead of letting the local plugin handler execute and terminate the turn.

Root Cause

Despite the fix reported in #77384 (shipped in v2026.5.3), custom plugin commands registered via api.registerCommand() are still failing to intercept agent runs in specific scenarios.

The LLM (agent) continues to respond to registered slash commands instead of letting the local plugin handler execute and terminate the turn.

RAW_BUFFERClick to expand / collapse

Description

Despite the fix reported in #77384 (shipped in v2026.5.3), custom plugin commands registered via api.registerCommand() are still failing to intercept agent runs in specific scenarios.

The LLM (agent) continues to respond to registered slash commands instead of letting the local plugin handler execute and terminate the turn.

Environment

  • OpenClaw Version: v2026.5.4 (325df3e)
  • OS: macOS 26.4.1 (arm64)
  • Channel: Telegram
  • Channel Config: commands.native: false (Custom commands are handled as text routing rather than native Telegram UI commands)

Steps to Reproduce

  1. Register a custom command in a plugin using api.registerCommand({ name: 'test', ... }).
  2. Ensure commands.native: false is set for the Telegram channel.
  3. Send /test to the bot.

Expected Behavior

The plugin handler should execute, and the turn should end (unless continueAgent: true is explicitly returned).

Actual Behavior

The agent run is triggered, and the LLM responds conversationally (e.g., explaining what the command might mean or just chatting), ignoring the local interceptor.

Additional Context

  • This is a regression that appeared in v2026.5.2.
  • The re-ordering of loadCommandHandlers() mentioned in #77384 does not seem to cover the text-routing path for Telegram when native commands are disabled.
  • Rolling back to v2026.4.23 immediately restores the correct interception behavior.

Reference: Replaces and reopens the case from #77384.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Regression: Plugin commands fail to intercept agent run on Telegram (v2026.5.4 still affected) [1 comments, 2 participants]