Repository navigation
fix(discord): preserve authoritative voice-delivery outcomes - #117127
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 8:35 PM ET / August 1, 2026, 00:35 UTC. ClawSweeper reviewWhat this changesThis PR prevents Discord voice replies from falling back to a separate text message when the final nonce-protected voice-message create has an ambiguous response that may already have committed. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain No discrete patch defect found. The change places the ambiguity fact at the final Discord message-create owner and prevents the outer voice fallback from issuing a different-nonce text reply; current Priority: P1 Review scores
Verification
How this fits togetherDiscord’s outbound payload adapter sends voice media through the voice-message sender, then may send text when voice preparation fails. The retry layer classifies whether the final Discord create could have committed, and the payload adapter uses that recorded result to decide whether a separate text reply is safe. flowchart LR
A[Outbound reply payload] --> B[Voice message sender]
B --> C[Audio preparation and upload]
C --> D[Final Discord message create]
D --> E{Delivery outcome}
E -->|Pre-create failure| F[Text fallback]
E -->|Ambiguous create| G[Propagate failure]
F --> H[One visible reply]
G --> I[Avoid duplicate reply]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +61, Tests +476. Total +537 across 6 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Validate the exact clean merge result on current main, then attach redacted Discord runtime evidence showing that an ambiguous final create sends no text fallback while a pre-create failure still sends one. Do we have a high-confidence way to reproduce the issue? Yes. Source and focused tests establish that an ambiguous error after the final Discord message POST reaches the outer voice fallback path, where baseline behavior can attempt a separate text send; this read-only review did not execute the regression. Is this the best way to solve the issue? Yes. Recording the outcome at the final create owner and reading it at the fallback owner is safer than inferring the create phase from an error message; current-main merge proof and observable runtime proof remain needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5d6f21122c96. 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.
|
* origin/main: (217 commits) fix(messages): reply actions leak citation markers and reply/poll answers draw the no-reply fallback (openclaw#116909) fix(slack): let durable ingress retry transient thread lookups (openclaw#117135) refactor(doctor): consolidate shipped state migration ownership (openclaw#117142) fix(ai): Codex stream shows internal parser text on a malformed frame (openclaw#116966) fix: guard every migrated session accessor path (openclaw#117140) fix(terminal): measure unicode display width consistently (openclaw#117062) fix(openai): clear ChatGPT SSE fallback per session (openclaw#117123) fix(mistral): reject incomplete streamed tool terminals (openclaw#117137) fix(ai): preserve structured chat content and refusals (openclaw#117136) fix(doctor): persist normalized agent roster (openclaw#117115) fix(signal): avoid replay after ambiguous quote delivery errors (openclaw#117134) fix(cron): reject disabled delivery accounts when scheduling (openclaw#116899) fix(gateway): honor HTTP If-Modified-Since media validators (openclaw#117133) fix(config): delete one array element per config patch delete (openclaw#116463) fix(plugins): report installed dependency health authoritatively (openclaw#117029) fix(ui): recover moving sessions across paged gateway rosters (openclaw#117016) fix(ui): clear hidden session selection before bulk deletion (openclaw#117015) fix(discord): avoid replaying ambiguous voice deliveries (openclaw#117127) fix(ui): scope Gateway reconnect lineage to its target (openclaw#117125) fix(models): expose runtime provider catalogs in browse views (openclaw#116857) ...
* commit 'c41f033b87545b658215a9c3bbe03f88fbaa867d': (347 commits) refactor(plugins): consolidate descriptor and startup ownership (openclaw#117146) fix(messages): reply actions leak citation markers and reply/poll answers draw the no-reply fallback (openclaw#116909) fix(slack): let durable ingress retry transient thread lookups (openclaw#117135) refactor(doctor): consolidate shipped state migration ownership (openclaw#117142) fix(ai): Codex stream shows internal parser text on a malformed frame (openclaw#116966) fix: guard every migrated session accessor path (openclaw#117140) fix(terminal): measure unicode display width consistently (openclaw#117062) fix(openai): clear ChatGPT SSE fallback per session (openclaw#117123) fix(mistral): reject incomplete streamed tool terminals (openclaw#117137) fix(ai): preserve structured chat content and refusals (openclaw#117136) fix(doctor): persist normalized agent roster (openclaw#117115) fix(signal): avoid replay after ambiguous quote delivery errors (openclaw#117134) fix(cron): reject disabled delivery accounts when scheduling (openclaw#116899) fix(gateway): honor HTTP If-Modified-Since media validators (openclaw#117133) fix(config): delete one array element per config patch delete (openclaw#116463) fix(plugins): report installed dependency health authoritatively (openclaw#117029) fix(ui): recover moving sessions across paged gateway rosters (openclaw#117016) fix(ui): clear hidden session selection before bulk deletion (openclaw#117015) fix(discord): avoid replaying ambiguous voice deliveries (openclaw#117127) fix(ui): scope Gateway reconnect lineage to its target (openclaw#117125) ...
…7127) Co-authored-by: Peter Steinberger <[email protected]>
* commit '31f24547a94a8bd74a32e42cde1783591c5804d9': (347 commits) refactor(plugins): consolidate descriptor and startup ownership (openclaw#117146) fix(messages): reply actions leak citation markers and reply/poll answers draw the no-reply fallback (openclaw#116909) fix(slack): let durable ingress retry transient thread lookups (openclaw#117135) refactor(doctor): consolidate shipped state migration ownership (openclaw#117142) fix(ai): Codex stream shows internal parser text on a malformed frame (openclaw#116966) fix: guard every migrated session accessor path (openclaw#117140) fix(terminal): measure unicode display width consistently (openclaw#117062) fix(openai): clear ChatGPT SSE fallback per session (openclaw#117123) fix(mistral): reject incomplete streamed tool terminals (openclaw#117137) fix(ai): preserve structured chat content and refusals (openclaw#117136) fix(doctor): persist normalized agent roster (openclaw#117115) fix(signal): avoid replay after ambiguous quote delivery errors (openclaw#117134) fix(cron): reject disabled delivery accounts when scheduling (openclaw#116899) fix(gateway): honor HTTP If-Modified-Since media validators (openclaw#117133) fix(config): delete one array element per config patch delete (openclaw#116463) fix(plugins): report installed dependency health authoritatively (openclaw#117029) fix(ui): recover moving sessions across paged gateway rosters (openclaw#117016) fix(ui): clear hidden session selection before bulk deletion (openclaw#117015) fix(discord): avoid replaying ambiguous voice deliveries (openclaw#117127) fix(ui): scope Gateway reconnect lineage to its target (openclaw#117125) ...
What Problem This Solves
Discord could post both an accepted voice reply and a duplicate text transcript when the voice-create response was lost. Same-nonce retries were already safe, but the outer payload owner treated an exhausted ambiguous failure as authorization to create a different message.
Why This Change Was Made
The existing private Discord retry owner owns one typed delivery-failure classifier and one identity-preserving, garbage-collected create-phase record. Only the actual final nonce-protected voice-message create records ambiguity; remote media downloads, attachment negotiation, CDN uploads, and transcoding never do. The fallback owner reads that recorded fact instead of guessing the phase from an error message.
User Impact
fetch failed, or another existing Discord transient-transport outcome.fetch failedoccurs during audio download, attachment negotiation, or CDN upload before any message can exist.Evidence
21fba83254a800843e26e1003dbc0e245ad97b27; immutable candidate:9fb07027f2c53c248e4c15b82d33c05ce888fb33.DiscordErrorandRateLimitErrorclasses, nonce enforcement, authoritative HTTP-versus-nested-cause precedence, every existing transient-message variant, and safe FFmpeg/pre-connect/rejection controls are covered.completed.