Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThe Discord sender includes an existing thread’s identity in physical delivery callbacks and the final delivery receipt. Example: A requester sends “Completed the requested work.” to channel:1510164477642014740 and finishes with NO_REPLY
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 1 item remains This PR retains a useful receipt repair that current main and the merged related fix do not provide. No actionable patch defect was found, and no closure condition applies. Priority: P1 Before merge
FindingsNone. Provenance
Tests
Agent review detailsHow this fits togetherThe Discord plugin sends messages and returns receipts describing where they landed. OpenClaw’s agent runtime uses those receipts to recognize replies to the requester’s current conversation and settle delegated tasks. flowchart TD
A[Requester in Discord thread] --> B[Message tool sends reply]
B --> C[Discord sender reads destination]
C --> D[Message posted to existing thread]
D --> E[Receipt includes thread identity]
E --> F[Current conversation check]
F --> G[Silent completion credited]
Technical reviewBest possible solution: Keep physical thread identity authoritative in Discord’s existing sender and receipt owner while preserving shared account, destination, and completion checks. Do we have a high-confidence way to reproduce the issue? Yes: current source shows that an existing-thread send returns a receipt without thread identity, which the current-source matcher rejects. The supplied composed regression exercises this path, but this read-only review did not execute it. Is this the best way to solve the issue? Yes: supplying the fetched destination’s thread identity at the physical sender repairs the evidence producer without weakening shared matching or duplicating the merged route resolver. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dcd3ca7a7fd5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +4, Tests +222. Total +226 across 3 files. Added test files: 1. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)Reviewed October 8, 2026, 4:28 PM ET / 20:28 UTC (Revision 4). |
|
On current main Our run could not force a literal trailing |
|
Thanks for testing this on current main. I have not reproduced an undelivered requester with real Discord bots, and I cannot supply a verified model or original prompt. The reporter did not include those in #163724. The reported flow was an existing Discord thread → My regression at Your successful current-main run is useful contrary evidence. It covers the actual send and child settlement; the literal-final case remains unverified. I will keep these scopes separate rather than claim my fixture establishes a live failure. |
|
Thanks for this. With real Discord bots on current main, a sessions_spawn, sessions_yield and message send into an existing thread was delivered, and the child settled as delivered. We couldn't reproduce an undelivered classification through a real flow. Closing for now. If you can capture the exact model, prompt and logs from a run where it happened, reopen and we'll pick it up. |
Related: #163724
What Problem This Solves
A successful reply to an existing Discord thread can lack the thread identity needed to confirm delivery to the current source, leaving a silent requester completion classified as undelivered.
User Impact
Replies posted into existing threads carry accurate placement evidence through progress and final receipts. Actual after-fix Discord thread delivery and requester task settlement remain required, unproven merge evidence; this maintenance does not waive that review request.
Why This Change Was Made
The sender already fetches the destination channel. Its existing thread type now supplies the thread ID for physical-delivery callbacks and the aggregate receipt, including chunked sends. Ordinary channel, forum creation, media, reply, structured-message, and request-authority behavior retain their owners.
This complements #163756 by MertBasar0, which repairs implicit thread identification during extraction. The repair remains receipt-only, with no overlapping resolver change, new permission policy, configuration, API or stored-data format.
Current maintenance normally merges published head
608ddb9f703174be0b3f2a5496a8e7049fb0ebbewith pinned official mainc786f4d4c4ea27630466a529630e56071845a682. The actual sender conflict keeps main’s asyncwithDiscordRequestAuthorityscope and structured-message helper, then replays the same three receipt-fix hunks. The retired internal sender wrapper is not restored; both regressions retain their behavioral assertions.Evidence
Current committed head: 83ef1a8.
git diff --check. The complete native plan records 33 passing stages and one failing unused-export stage, summed stage wall 5,173.743 seconds; runtime value import cycles are zero.Inherited local failure: production and full-tree Knip report
src/talk/client-voice-session-store.ts: ClientVoiceToolEffect(the full-tree namespace report includesvoiceSessionStore); script scanning reports zero entries. The exact entire tracked working tree at pinned mainc786f4d4c4ea27630466a529630e56071845a682, in the same installed environment, reproduces the identical production/full-tree findings in 157.523 seconds. Candidate source and index were restored exactly. No scanner exemption, baseline change, test deletion or unrelated voice change was used. This is a qualified inherited failure, not a claim that all checks pass. Node 24.19.0 / pnpm 12.5.1..Live evidence gap: this round’s canonical Discord readiness probe failed at Convex lease acquisition, before any Discord identity/history request. The probe did not obtain a lease identity, no Gateway started and no Discord objects were created. Preflight found neither broker environment variable, no Convex/bunx launcher on PATH, and no default Convex user-config file. Canonical discovery, including its offline fallback, did not produce a usable lease; the probe does not establish which authentication, project-access or pool prerequisite needs repair. This is an environment prerequisite failure, not evidence of a Discord permission defect. No credentials were installed, provisioned, copied or rotated. The existing real-Discord message-tool → NO_REPLY → successful requester settlement request remains pending an authorized shared QA lease.
Local results use controlled REST responses, not live Discord or an operator Gateway. Separate voice, component, poll and webhook send producers remain outside the repair. Natural exact-head CI is separate from local proof; no workflow is dispatched or rerun to obtain green.
Retained earlier defect proof and costs
The original sender failed the same composed receipt/requester regression; the receipt-only correction passed while the channel descriptor remained unchanged. Previous head
608integrated official main4aa24e3aand passed the 144-case sender/public-facade selection in 85.722 seconds, extension production/test types, scoped lint/format and diff checks. Earlier independent sibling proof protected another 119 cases. Those runs retain their original inputs and do not become current-head CI.Original isolated requester test: 26.188 seconds wall / 252 ms test time. Original changed thread suite: 26.494 seconds wall / 27 cases. Existing fixtures add no new Gateway boot, timer, polling, or production seam during this maintenance. New-head CI job-seconds are unmeasured until its natural run completes.