Skip to content

[Bug]: /acp slash command ignores inline arg, shows menu anyway #32753

@Warp1nx

Description

@Warp1nx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions