Repository navigation
fix(discord): restore question receipts after rejected acknowledgements - #128293
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 1:30 PM ET / 17:30 UTC. ClawSweeper reviewWhat this changesThe PR restores ephemeral Discord question receipts after a rejected component acknowledgement by replying through the still-available initial callback instead of a follow-up webhook. Merge readinessKeep open for maintainer proof-sufficiency review: the branch correctly selects Discord’s initial response when the interaction controller remains unacknowledged, but no authenticated Discord trace confirms the external callback/follow-up lifecycle. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherA Discord question-button click is authorized and resolved by the Discord plugin, then receives an ephemeral receipt. The interaction response controller decides whether that receipt must use the initial callback or a follow-up webhook. flowchart LR
A[Discord question click] --> B[Authorization]
B --> C[Question resolution]
C --> D[Interaction response state]
D -->|Unacknowledged| E[Ephemeral initial reply]
D -->|Acknowledged| F[Ephemeral follow-up]
E --> G[Visible question receipt]
F --> G
Decision needed
Why: The patch’s route decision depends on Discord’s externally enforced interaction lifecycle, which the local table test models but does not authenticate against Discord. Before merge
Agent review detailsSecurityNone. PR surfaceSource -3, Tests +104. Total +101 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the single state-based receipt path and add a redacted authenticated Discord trace that demonstrates the rejected-acknowledgement recovery before merging. Do we have a high-confidence way to reproduce the issue? Yes, in source: reject the acknowledgement REST call, resolve a question outcome, and observe current main attempt an unusable webhook follow-up; the branch test covers this path but this read-only review did not execute it. Is this the best way to solve the issue? Yes, the state-based selection is the narrowest owner-boundary repair because it leaves authorization and one-time question resolution unchanged while using the controller’s canonical reply action. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b0dafb2551a4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where users answering a Discord question would receive no visible confirmation or failure explanation when Discord rejected the initial component acknowledgement, even though the answer could already have been accepted by OpenClaw.
Why This Change Was Made
Discord only accepts an interaction follow-up after its initial callback succeeds. The private question-feedback owner now reads the authoritative interaction response state and uses an ephemeral initial reply when acknowledgement failed, while retaining the existing ephemeral follow-up after an accepted acknowledgement. Successful answers, already-answered questions, and question-resolution failures share one canonical feedback path; authorization, answer ownership, public APIs, and provider configuration are unchanged.
Security-sensitive execution-approval and plugin-binding approval interaction owners share related acknowledgement lifecycle patterns and require separate owner/security review. They are intentionally out of scope and were not modified.
User Impact
Discord users reliably see whether their answer was submitted, already handled, or could not be submitted after a transient acknowledgement failure. Existing private response visibility and one-time answer resolution stay unchanged.
Evidence
7ed5bf34ee15a16a5da1aa192759b277a2d29e02./webhooks/...after the initial acknowledgement was rejected instead of using the still-available interaction callback.promptStarted/elicitationModesdiagnostics; no changed Discord file emits a diagnostic.