openclaw - 💡(How to fix) Fix [Bug]: 2026.4.24 regression — Discord exec approval no longer sends interactive prompt via DM; approval callbacks loop with repeated errors after user approves [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#71804Fetched 2026-04-26 05:08:04
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Timeline (top)
closed ×1commented ×1

Error Message

  1. After approving in Discord (when prompt does appear), repeated error messages are sent — If an approval prompt does surface in Discord and the user clicks Allow, the system keeps sending repeated error messages about that same approval instead of recognizing it was already processed.
  2. The command executes, but repeated error messages about the same approval keep appearing in the channel This eliminates both the missing prompt and the repeated error issues, at the cost of losing the approval gate for exec commands.

Root Cause

  • The Discord interactive component registration (inline buttons for approval) may have changed or broken in 2026.4.24, causing the system to fall back to Web UI-only delivery
  • The approval lifecycle callback in Discord appears to have a race condition with the message queue (collect/steer mode), causing the approval result to not properly terminate the flow
  • This may be related to the ENOTEMPTY bug (#71802) — if bundled plugin loading fails, Discord interactive capabilities may not fully initialize

Fix Action

Workaround

Disable exec approvals for Discord:

channels:
  discord:
    accounts:
      ai-expert:
        execApprovals:
          enabled: false

This eliminates both the missing prompt and the repeated error issues, at the cost of losing the approval gate for exec commands.

Code Example

channels:
  discord:
    accounts:
      ai-expert:
        execApprovals:
          enabled: false
RAW_BUFFERClick to expand / collapse

Bug Summary

Two related regressions in OpenClaw 2026.4.24 affecting Discord exec approval flow:

  1. Approval prompts no longer appear in Discord DM — Before upgrading, exec approval requests were sent as interactive Discord messages (with Allow/Deny buttons) via DM. After upgrading to 2026.4.24, approval prompts only appear in the Web UI. No config changes were made.

  2. After approving in Discord (when prompt does appear), repeated error messages are sent — If an approval prompt does surface in Discord and the user clicks Allow, the system keeps sending repeated error messages about that same approval instead of recognizing it was already processed.

Reproduction Steps

Issue 1: No Discord DM approval prompt

  1. Have execApprovals enabled for Discord account
  2. Trigger a command that requires exec approval
  3. Observe: approval prompt only appears in Web UI, not in Discord DM
  4. Previous version correctly sent interactive approval card via Discord DM

Issue 2: Repeated approval errors

  1. When an approval prompt does appear in Discord (e.g., in channel)
  2. Click Allow
  3. The command executes, but repeated error messages about the same approval keep appearing in the channel
  4. Errors indicate the approval callback is being re-processed or the approval result was lost

Environment

  • OpenClaw version: 2026.4.24 (upgraded from previous stable)
  • Platform: macOS Apple Silicon (Darwin 25.4.0)
  • Node.js: v22.22.0
  • Channel: Discord
  • No configuration changes were made between versions
  • Previous version did NOT have this issue

Root Cause Analysis

  • The Discord interactive component registration (inline buttons for approval) may have changed or broken in 2026.4.24, causing the system to fall back to Web UI-only delivery
  • The approval lifecycle callback in Discord appears to have a race condition with the message queue (collect/steer mode), causing the approval result to not properly terminate the flow
  • This may be related to the ENOTEMPTY bug (#71802) — if bundled plugin loading fails, Discord interactive capabilities may not fully initialize

Related Issues

  • #58769 — excessive exec approval prompts regression (2026.3.31)
  • #32062 — exec approval lifecycle outcomes delayed by collect/steer queueing
  • #46708 — exec approval UX can fail across Web UI / TUI
  • #71802 — ENOTEMPTY on bundled plugin-sdk (same version, may be related)

Workaround

Disable exec approvals for Discord:

channels:
  discord:
    accounts:
      ai-expert:
        execApprovals:
          enabled: false

This eliminates both the missing prompt and the repeated error issues, at the cost of losing the approval gate for exec commands.

extent analysis

TL;DR

Disable exec approvals for Discord or investigate the Discord interactive component registration and approval lifecycle callback to resolve the issues with approval prompts and repeated error messages.

Guidance

  • Investigate the Discord interactive component registration to ensure it is properly configured and initialized in OpenClaw 2026.4.24.
  • Review the approval lifecycle callback in Discord to identify and resolve any potential race conditions with the message queue.
  • Consider disabling exec approvals for Discord as a temporary workaround, using the provided YAML configuration.
  • Examine the related issues (#58769, #32062, #46708, #71802) for potential connections to the current problems.

Example

channels:
  discord:
    accounts:
      ai-expert:
        execApprovals:
          enabled: false

This YAML configuration disables exec approvals for Discord, which may help mitigate the issues.

Notes

The provided workaround disables exec approvals for Discord, which may not be a suitable long-term solution. Further investigation into the Discord interactive component registration and approval lifecycle callback is necessary to resolve the issues.

Recommendation

Apply the workaround by disabling exec approvals for Discord, as it provides a temporary solution to the issues, but prioritize investigating the root cause to implement a more permanent fix.

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]: 2026.4.24 regression — Discord exec approval no longer sends interactive prompt via DM; approval callbacks loop with repeated errors after user approves [1 comments, 2 participants]