Repository navigation
fix(qa): Matrix replies disappear after final replacement - #117390
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 9:23 AM ET / 13:23 UTC. ClawSweeper reviewWhat this changesThe branch changes Matrix QA observation so an Merge readinessKeep this maintainer-authored PR open for normal landing review. The prior late-decryption finding is addressed: the branch records replacement targets separately from logical relations and appends a rehydrated replacement after its target gains a relation; no new concrete patch defect was found in this review. Priority: P2 Review scores
Verification
How this fits togetherQA Lab’s Matrix transport turns sync and encrypted-client events into an append-only observed-event stream used by live scenario matchers and timeout diagnostics. This change preserves both an edit’s physical target and the original message’s reply or thread metadata so final-response checks can identify the same event correctly. flowchart LR
A[Matrix room events] --> B[Sync and E2EE observers]
B --> C[Observed event normalization]
C --> D[Separate edit target from relation]
D --> E[Append-only observed event stream]
E --> F[Cursor-based scenario waiters]
F --> G[QA evidence and diagnostics]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +87, Tests +51. Total +138 across 12 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the single canonical observed-event shape—separate edit target plus inherited logical relation—after the exact-head QA checks confirm sync and encrypted replacement ordering. Do we have a high-confidence way to reproduce the issue? Yes—source establishes the failure shape: current main treats an edit’s outer Is this the best way to solve the issue? Yes—the separate AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2576d844c436. 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) |
555c459 to
7f591e2
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* origin/main: docs: generate docs map at publish time (openclaw#117398) refactor(plugins): move plugin contributions into the registry bundle (openclaw#117372) fix(tui): keep PTY progress and lifecycle truthful (openclaw#117402) test(xai): type realtime sent item payloads fix(qa): preserve Slack fallback evidence (openclaw#117420) fix(qa): satisfy update lane execution contracts (openclaw#117388) fix(qa): Matrix replies disappear after final replacement (openclaw#117390) test(xai): prove rejected tool call continuation fix(xai): complete rejected realtime tool calls test(xai): add live tool argument probe test(xai): cover rejected realtime tool arguments fix(xai): validate realtime tool arguments before dispatch fix(xai): skip tool call when rawArgs JSON parse fails instead of silently falling back to empty args
…17390) * fix(qa): preserve Matrix relations through replacements * fix: honor Matrix replacement relation semantics * fix(qa): reconcile late Matrix replacement targets * test(qa): exercise Matrix recorder through public behavior
* origin/main: docs: generate docs map at publish time (openclaw#117398) refactor(plugins): move plugin contributions into the registry bundle (openclaw#117372) fix(tui): keep PTY progress and lifecycle truthful (openclaw#117402) test(xai): type realtime sent item payloads fix(qa): preserve Slack fallback evidence (openclaw#117420) fix(qa): satisfy update lane execution contracts (openclaw#117388) fix(qa): Matrix replies disappear after final replacement (openclaw#117390) test(xai): prove rejected tool call continuation fix(xai): complete rejected realtime tool calls test(xai): add live tool argument probe test(xai): cover rejected realtime tool arguments fix(xai): validate realtime tool arguments before dispatch fix(xai): skip tool call when rawArgs JSON parse fails instead of silently falling back to empty args
What Problem This Solves
Fixes an issue where Matrix live QA observed successful final edits but then timed out matching image-content and threaded-reply expectations because replacement metadata displaced the event's logical relation.
Why This Change Was Made
The Matrix observer records physical
m.replacedelivery separately from logical reply/thread relations. Replacement events inherit the original event's relation in both sync and E2EE paths. If an E2EE replacement decrypts before its target, the recorder now rehydrates and appends the enriched replacement when the target arrives, keeping cursor-based waiters observable without compatibility fallbacks.User Impact
Matrix live evidence can recognize final edited replies in top-level, threaded, and late-decryption orderings without weakening content or relation assertions. Product runtime is unchanged.
Evidence
overall: patch is correct, confidence 0.99).git diff --checkpassed.Private QA Lab delta: +87 net source lines and +51 net test lines. No compatibility shim or alternate record shape remains.
AI-assisted: yes. Agent transcript omitted unless requested.