Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 29, 2026, 4:02 AM ET / 08:02 UTC. ClawSweeper reviewWhat this changesThis PR makes iMessage approval tapbacks replay through durable ingress after a transient Gateway resolution failure and adds poller and durable-replay coverage. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep open. The retry design is correct on the inspected branch, but the submitted after-fix evidence remains a mocked integration test rather than a real iMessage-to-Gateway recovery run. Priority: P1 Review scores
Verification
How this fits togetheriMessage tapbacks enter the channel’s durable ingress queue before priority approval handling. The handler resolves an authorized tapback through Gateway, then the shared drain either completes the claim or releases it for retry. flowchart TD
A[iMessage approval tapback] --> B[Durable ingress queue]
B --> C[Priority approval handler]
C --> D{Gateway resolution}
D -->|Temporary failure| E[Release claim for retry]
D -->|Terminal result| F[Complete reaction claim]
E --> C
Before merge
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +225. Total +227 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the direct throw into the durable retry owner and add a redacted real iMessage-to-Gateway transient-failure-and-recovery trace before merge. Do we have a high-confidence way to reproduce the issue? Yes, from source: the pre-change terminal result completed the claim, while the new test encodes a transient resolver failure followed by durable redelivery. It was not independently executed in this read-only review. Is this the best way to solve the issue? Yes. Rethrowing to the already-established durable drain keeps retry and claim ownership in one place, rather than adding a channel-local retry path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c3e9712a497d. 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 (4 earlier review cycles)
|
|
@clawsweeper re-review Head
PR body and title updated to the final mechanism. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
CI fix on head
Verified locally: full imessage suite 1179/1179 ( |
… errors
Transient Gateway 5xx/network/auth errors in approval reaction resolution
were returning {handled:true, stopPolling:true}, which caused the durable
ingress while(true) loop to commit the claim (GUID tombstone) and lose
the operator's approval click permanently.
Fix: return {handled:false} so the loop retries via
iMessageApprovalControlBindings.wait(), keeping the durable claim alive.
This is the same fix pattern as matrix (openclaw#129879) and signal (openclaw#130134).
Test: prove transient errors keep the binding alive and return handled:false.
Fixes: imessage approval reaction silent drop on resolver-error
987b2a0 to
0db5a1a
Compare
|
Thanks @wangmiao0668000666! Proof: On the merged head, an isolated iMessage reaction reached a real Gateway over authenticated WebSockets. The first approval completed but its response was dropped. The durable queue replayed the identical request, the Gateway returned the recorded terminal result, one approval event was emitted, and a duplicate reaction caused no third resolver call.
Example
|
|
Thanks for the review and the merge, @obviyus — much appreciated. 🙏 |
…ures (openclaw#130893) Preserve operator approval reactions across transient Gateway failures by returning retry ownership to the durable ingress drain. NotFound remains terminal, while replayed terminal decisions stay idempotent.\n\nCo-authored-by: wangmiao0668000666 <[email protected]>\nCo-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
An iMessage approval tapback was lost when the Gateway approval request failed temporarily. The channel returned a terminal handled result, so the durable ingress queue completed the reaction instead of replaying it.
Signal already uses the correct replay path on current
main. This PR aligns iMessage with Signal and Matrix.Fixes #131003.
Why This Change Was Made
iMessage now throws every non-NotFound resolver error to the shared durable ingress drain. The drain records the failure, releases the claim, and replays the same reaction under its bounded retry policy.
NotFound remains terminal and clears the expired binding. The obsolete
resolver-errorresult was removed. The poller now preserves the binding and retries on its next interval.User Impact
An approval reaction now survives a temporary Gateway failure. The operator does not need to tap the approval again after the Gateway recovers.
Evidence
mainat6b1eacad93819efeb324e056aa57a782d6280bd5: the iMessage SQLite replay contract failed because the resolver ran once instead of twice.0db5a1a146e99073acf506bff5312f37bf12daa5: the Signal and iMessage SQLite replay contracts passed.Redacted iMessage-to-Gateway replay trace
The exact-head proof ran an isolated Gateway over authenticated WebSockets. The first Gateway call committed the approval, but the harness dropped its response. The durable iMessage drain released and reclaimed the reaction. The replay reached the Gateway, received the recorded terminal result, and completed the queue once.
{ "head": "0db5a1a146e99073acf506bff5312f37bf12daa5", "requestReplayEqual": true, "gatewayResults": [ { "attempt": 1, "applied": true, "observedByChannel": false }, { "attempt": 2, "applied": false, "terminalStatus": "allowed" } ], "queue": ["claimed", "released", "reclaimed", "completed", "duplicate-suppressed"], "approvalResolvedEvents": 1, "resolverCallsAfterDuplicate": 2, "result": "pass" }