Repository navigation
fix(discord): show failed final slash-command responses - #118545
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 2:51 AM ET / 06:51 UTC. ClawSweeper reviewWhat this changesThe branch changes Discord native slash-command reply handling so a failed final delivery shows the existing private no-visible-reply warning instead of being hidden by an earlier or later intentional suppression. Merge readinessKeep this maintainer-labeled PR open for normal owner review: current main still suppresses the fallback after any non-visible final delivery, including the reported final-delivery failure, while the patch records the authoritative terminal outcome at the Discord delivery owner and covers the ordering cases. Priority: P1 Review scores
Verification
How this fits togetherDiscord slash commands enter the native interaction dispatcher, which delivers final, block, and tool replies through the channel turn lifecycle. The Discord adapter observes delivery callbacks and then either leaves an accepted reply visible, settles an intentional suppression, or sends a private fallback warning. flowchart TD
A[Discord slash command] --> B[Native interaction dispatcher]
B --> C[Channel delivery lifecycle]
C --> D[Final delivery outcome]
D --> E[Accepted reply remains visible]
D --> F[Intentional suppression settles interaction]
D --> G[Failed final shows private warning]
Decision needed
Why: The code and submitted proof support the narrow repair, but the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +7, Tests +130. Total +137 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the final-delivery outcome as Discord-owned state, rebase or refresh the branch against current main, and merge once the owner confirms the exact head passes required checks. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible with high confidence: current main records any non-visible final as silent settlement while final delivery errors do not override that state. The submitted exact-head Testbox proof also reports red baseline assertions and after-fix native interaction scenarios, though this read-only review did not execute them. Is this the best way to solve the issue? Yes. Recording accepted, failed, or intentionally suppressed state at the Discord delivery observer is the narrowest maintainable fix because that adapter owns the authoritative final-delivery fact; it avoids downstream inference from aggregate dispatch counts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 48d3f2e21345. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…#118545) Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where users running a Discord slash command would receive no answer when its final interaction response failed after another response was intentionally suppressed. The deferred interaction could disappear without showing either the requested result or an actionable failure.
Why This Change Was Made
The Discord native-interaction owner now records one authoritative final response outcome: accepted, failed, or intentionally suppressed. A failed final response cannot be overwritten by an earlier or later suppression, while a genuinely accepted final response, intentional suppression, partial delivery, and component interactions retain their existing behavior.
The change touches two existing files and adds seven production lines to preserve the native interaction's actual final-delivery ownership; it adds no configuration, dependency, public API, compatibility path, or packaging surface.
User Impact
Discord slash-command users now receive a visible private failure when their final response cannot be delivered, including mixed suppressed/failed response sequences. Successfully delivered responses and deliberate silent outcomes remain unchanged.
Evidence
[email protected], real interaction callback envelopes, and the Discord REST boundary. The run used no credentials and made no external network requests.tbx_01kz35357qc03fx9039rsfp642finished withexitCode: 0and was stopped.Maintainer decision and current-main compatibility
origin/mainat3aca283d44524f1c8e0d96f0aedf530f3973770cleaves both reviewed Discord files byte-identical to the original base; GitHub reports the exact reviewed head cleanly mergeable and all relevant exact-head checks are complete and green.maincommits advanced; preserving the independently reviewed commit retains the authenticated proof and follows the repository landing policy.Real behavior proof
{ "status": "PASS", "head": "5fd9a260c2bb9c2052e5fd324274bfac07bb018b", "parent": "57732647d16d3ad8629a4bef708a2bef343f9190", "rejectedPredecessor": "e4022e6cc0805708092cfeca4b34cf2e8b2fb260", "channel": "discord", "dependency": "[email protected]", "authenticBaselineRedAssertions": 6, "authenticRejectedPredecessorRedAssertions": 6, "realDeferredInteractionScenarios": 15, "discordOwnerAndSiblingSuites": 11, "sharedTurnAndDispatcherSuites": 3, "externalNetworkRequests": 0, "credentialsUsed": false, "productionLinesAddedNet": 7, "changedGate": "PASS: complete exact-two-file changed gate", "runner": "blacksmith-testbox", "run": "https://github.com/openclaw/openclaw/actions/runs/30790465298" }