openclaw - 💡(How to fix) Fix [Bug] Discord plugin slash commands miss 3s ack deadline (regression of #60880 for plugin-registered commands) — "Unknown interaction" [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#73978Fetched 2026-04-30 06:30:09
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
cross-referenced ×2commented ×1

On OpenClaw 2026.4.26, slash commands provided by plugins (/vc join, /voice, /codex, /claude_mem_*, etc.) consistently fail with "Unknown interaction" or "Interaction has already been acknowledged" when invoked from the Discord client.

Likely a regression of #55240 / #58602 / #60880 (all CLOSED) — those fixed core/native commands; this affects plugin-registered commands, which appear to be on a different code path that still misses the 3s ack deadline.

Error Message

20:23:04 ERROR Unknown interaction DiscordError: Unknown interaction at RequestClient.executeRequest .../@buape/carbon/dist/src/classes/RequestClient.js:341:19

20:29:22 DEBUG discord: interaction defer skipped (interaction expired) [verbose]

20:29:34 DEBUG Registered plugin command: /codex (plugin: codex) [verbose] ← LATE 20:29:37 DEBUG Registered plugin command: /voice (plugin: talk-voice) [verbose] ← LATE 20:29:38 DEBUG Registered plugin command: /claude_mem_feed (plugin: claude-mem) [verbose] ← LATE [...]

20:29:46 ERROR Interaction has already been acknowledged.

Root Cause

When combined with #63098 (Discord voice silent disconnect), users have no working path to manually recover voice — the recovery command (/vc join) is itself broken by this bug. Voice plugins are effectively unusable end-to-end.

Code Example

20:23:04  ERROR  Unknown interaction
          DiscordError: Unknown interaction
            at RequestClient.executeRequest .../@buape/carbon/dist/src/classes/RequestClient.js:341:19

20:29:22  DEBUG  discord: interaction defer skipped (interaction expired) [verbose]

20:29:34  DEBUG  Registered plugin command: /codex (plugin: codex) [verbose]LATE
20:29:37  DEBUG  Registered plugin command: /voice (plugin: talk-voice) [verbose]LATE
20:29:38  DEBUG  Registered plugin command: /claude_mem_feed (plugin: claude-mem) [verbose]LATE
[...]

20:29:46  ERROR  Interaction has already been acknowledged.
RAW_BUFFERClick to expand / collapse

Description

On OpenClaw 2026.4.26, slash commands provided by plugins (/vc join, /voice, /codex, /claude_mem_*, etc.) consistently fail with "Unknown interaction" or "Interaction has already been acknowledged" when invoked from the Discord client.

Likely a regression of #55240 / #58602 / #60880 (all CLOSED) — those fixed core/native commands; this affects plugin-registered commands, which appear to be on a different code path that still misses the 3s ack deadline.

Environment

  • OpenClaw version: 2026.4.26 (be8c246)
  • OS: macOS (Mac Mini M4)
  • Node: v24.13.0
  • Plugins active (29 loaded): carbon framework, talk-voice, codex, claude-mem, etc.
  • Discord: native + plugin commands both registered with Discord (verified via Application.commands.list)

Reproduction

  1. Start OpenClaw with multiple plugins enabled (talk-voice, codex, claude-mem, etc.)
  2. Wait for gateway boot to settle
  3. Open Discord client → channel where the agent is bound
  4. Type any plugin slash command, e.g. /vc join <voice-channel>
  5. Discord shows "Unknown command: join" OR the interaction visibly hangs and then errors

Log evidence

20:23:04  ERROR  Unknown interaction
          DiscordError: Unknown interaction
            at RequestClient.executeRequest .../@buape/carbon/dist/src/classes/RequestClient.js:341:19

20:29:22  DEBUG  discord: interaction defer skipped (interaction expired) [verbose]

20:29:34  DEBUG  Registered plugin command: /codex (plugin: codex) [verbose]              ← LATE
20:29:37  DEBUG  Registered plugin command: /voice (plugin: talk-voice) [verbose]          ← LATE
20:29:38  DEBUG  Registered plugin command: /claude_mem_feed (plugin: claude-mem) [verbose] ← LATE
[...]

20:29:46  ERROR  Interaction has already been acknowledged.

The Registered plugin command: /<name> lines fire during the interaction handler's execution — i.e. the plugin's command handler is being lazily registered at the moment the user invokes it, not at gateway startup. Discord's 3-second interaction-acknowledge deadline is blown while the plugin's registration completes, and by the time the handler tries to defer()/reply(), the token has already expired.

Root-cause hypothesis (priority order)

  1. Plugin commands register lazily at first interaction instead of at gateway boot. The Registered plugin command: log lines appear during the interaction handler, not during gateway startup. This eats the entire 3-second ack budget.
  2. Race condition on interaction defer: by the time the handler tries interaction.deferReply(), the token has already expired → Unknown interaction.
  3. Double-ack race: Two handlers respond to the same interaction → Interaction has already been acknowledged.

Verification steps for maintainers

  • Search the plugin loader (@buape/carbon integration) for registerCommand / registerPluginCommand / deferReply calls — confirm whether they happen at startup or at interaction time
  • Add per-interaction timing log: (received → handler invoked → response sent) — measure the 3s budget
  • Check whether @buape/carbon exposes a synchronous "instant ack" path (some Discord libs do — useful for plugin-handler boots)

Suggested fix

  • Move plugin command registration to gateway startup (eager, not lazy). Gate the gateway "ready" event on plugin commands being fully registered, not just imported.
  • Wrap every plugin handler in an immediate interaction.deferReply() within the first 100ms before any business logic
  • Add timing metrics: count interactions exceeding a 2.5s budget; alert if >0.1% rate

Why this matters

When combined with #63098 (Discord voice silent disconnect), users have no working path to manually recover voice — the recovery command (/vc join) is itself broken by this bug. Voice plugins are effectively unusable end-to-end.

Related (likely-fixed-but-regressing)

  • #55240 — Discord slash commands return Done with no content, exceeds 3s deadline (closed)
  • #58602 — Discord /new slash command times out, needs deferReply() (closed)
  • #60880 — Discord slash subcommands timeout (Unknown interaction) after 2026.4.2 update (closed Apr 25)

These were fixed for core / commands.native: true commands. This issue covers plugin-registered commands, which appear to be on a separate code path that still misses the deadline.

extent analysis

TL;DR

Move plugin command registration to gateway startup and wrap plugin handlers in an immediate interaction.deferReply() to fix the "Unknown interaction" and "Interaction has already been acknowledged" errors.

Guidance

  • Verify the plugin loader (@buape/carbon integration) to confirm whether registerCommand calls happen at startup or at interaction time.
  • Add per-interaction timing logs to measure the 3s budget and identify potential bottlenecks.
  • Check if @buape/carbon exposes a synchronous "instant ack" path for plugin-handler boots.
  • Consider adding timing metrics to count interactions exceeding a 2.5s budget and alert if the rate exceeds 0.1%.

Example

No code snippet is provided as the issue does not contain sufficient information to create a specific example.

Notes

The suggested fix may require modifications to the plugin loader and handler code. It is essential to test the changes thoroughly to ensure that the fix does not introduce new issues.

Recommendation

Apply the workaround by moving plugin command registration to gateway startup and wrapping plugin handlers in an immediate interaction.deferReply(). This should help mitigate the "Unknown interaction" and "Interaction has already been acknowledged" errors.

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 [Bug] Discord plugin slash commands miss 3s ack deadline (regression of #60880 for plugin-registered commands) — "Unknown interaction" [1 comments, 2 participants]