Repository navigation
fix(discord): explain failed form openings instead of silently doing nothing - #119657
Merged
steipete merged 2 commits intoAug 5, 2026
Merged
Conversation
steipete
marked this pull request as ready for review
August 5, 2026 15:00
steipete
deleted the
codex/autoqa-discord-modal-visible-failure-20260805
branch
August 5, 2026 16:03
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 6, 2026
…nothing (openclaw#119657) * fix(discord): report failed modal presentation to the operator * refactor(discord): reuse canonical interaction failure recovery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes an issue where clicking a Discord form button could visibly do nothing when Discord rejected the modal presentation.
Why This Change Was Made
At the existing component-interaction owner, log the original modal failure and reuse the canonical unavailable-interaction helper to send one actionable ephemeral response without altering acknowledgement, consumption, grouping, or persistence.
User Impact
Users see a clear private instruction to request a new form when a modal cannot open, while expired interactions still fail safely without duplicate callbacks.
Evidence
47 Discord tests passed, including a real internal Discord interaction and REST callback sequence: failed Modal callback type 9 followed by one ChannelMessageWithSource callback type 4 carrying ephemeral flag 64; both accepted and rejected recovery responses are covered. Sibling interaction and component suites passed. Full changed gate and packaged build passed.
Integrated trusted-Testbox proof: 609 tests passed, including five real Chromium extension E2E cases; complete production/test typechecks, lint, plugin-boundary/generated-contract checks, private production build, and four actual ephemeral-Gateway scenarios all passed.
Owner/risk review: Uses the helper consolidated on current main; no Discord auth, public SDK, provider contract, or component persistence changes. Production growth is four lines for visible outcome ownership.