Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 3:01 AM ET / 07:01 UTC. ClawSweeper reviewWhat this changesThe PR preserves failed and partially failed core message-delivery outcomes for CLI text and JSON presentation while retaining throws for non-CLI callers. Merge readinessThe PR remains necessary: current main still throws direct core failures before the CLI formatter can preserve their durable outcome. The patch is a focused owner-boundary repair with no blocking correctness finding; it needs a rebase and exact-head checks before merge. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe message CLI invokes the message-action layer, which selects plugin or core delivery. Core delivery records a durable terminal outcome, and the CLI formatter converts that outcome into operator-visible text, JSON, and exit status. flowchart LR
A[CLI message command] --> B[Message action]
B --> C[Outbound send service]
C --> D[Core channel delivery]
D --> E[Durable delivery outcome]
E --> F[CLI JSON text and exit status]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +13, Tests +103. Total +116 across 4 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the durable sender as the terminal-outcome owner, expose that result only to CLI presentation, then rebase onto current main and validate the documented JSON failure envelope on the exact head. Do we have a high-confidence way to reproduce the issue? Yes—source reproducible: current main throws at src/infra/outbound/message.ts:479 before the existing CLI formatter can inspect deliveryStatus; the PR body also supplies an exact-head real CLI failure run. Is this the best way to solve the issue? Yes—the durable sender remains the owner of terminal delivery facts, while the CLI alone receives them for presentation; changing formatter logic without preserving that result would leave the failure unreachable. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 636e21b19855. 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
HistoryReview history (2 earlier review cycles)
|
6b99c91 to
456838d
Compare
456838d to
64e00b7
Compare
|
Thanks @Leon-SK668! Proof: On exact head
Example
|
Keep durable delivery outcomes available to CLI JSON formatting while preserving the throwing contract for non-CLI callers and leaving delivery policy unchanged. Co-authored-by: Leon-SK668 <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Follow-up to #129202.
The CLI lost durable
failedandpartial_failedcore-send results because the sender threw before JSON formatting could read them. Operators saw only a generic error and lost the delivery status, partial-send marker, and successful message ID.Why This Change Was Made
The durable sender remains the terminal outcome owner. It returns structured terminal failures only when the explicit caller identity is the CLI. Non-CLI callers keep the existing throwing contract. Queue, retry, recovery, batch-stop, and best-effort policies do not change.
User Impact
openclaw message send --jsonnow exits 1 and returns the structured delivery failure. A partial send also reportssentBeforeError: trueand the successful message ID.Evidence
8d51e415d6a): a real Discord CLI send with a synthetic invalid token reached Discord and received 401. The CLI exited 1 without structured JSON.8d51e415d6a): a real Discord CLI media send posted its randomized caption, then rejected a blocked video URL. The CLI exited 1 withoutpartial_failed,sentBeforeError, or the successful message ID.456838db637), retained for final head64e00b7f1fa: the same cases exited 1 with structuredfailedandpartial_failedJSON. The partial result includedsentBeforeError: trueand the successful message ID.33153895617passed after one infrastructure-only package-boundary timeout retry. Local ClawSweeper passed on64e00b7f1fawith no findings, security concerns, maintainer decisions, or rank-up moves.