-
-
Notifications
You must be signed in to change notification settings - Fork 69.2k
[Bug]: /acp slash command ignores inline arg, shows menu anyway #32753
Description
Bug type
Regression (worked before, now fails)
Summary
When typing /acp close (or any action inline), Discord sends the interaction with action = null because the field uses static choices — so OpenClaw always falls back to the button picker menu.
Root cause: buildDiscordCommandOptions registers the action arg with static choices (17 options, under Discord's 25 limit), which forces Discord's dropdown UI. Users can't bypass it by typing inline.
Fix: Register action with autocomplete: true instead of static choices. This lets users type freely, Discord passes the value through, and resolveCommandArgMenu correctly skips the menu when a value is present.
Cant just type /acp close in discord, it still shows the selection menu instead of bypassing it straight to closing the acp sub agent
Steps to reproduce
When typing /acp close (or any action inline), Discord sends the interaction with action = null because the field uses static choices — so OpenClaw always falls back to the button picker menu.
Root cause: buildDiscordCommandOptions registers the action arg with static choices (17 options, under Discord's 25 limit), which forces Discord's dropdown UI. Users can't bypass it by typing inline.
Expected behavior
/acp close shuts down sub agent
Actual behavior
/acp close opens /acp sub menu
OpenClaw version
2026.3.2
Operating system
Discord on Windows/Mac
Install method
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response