Repository navigation
matrix: persist approval reaction targets best-effort - #75586
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: not applicable. as a feature PR. Source inspection gives a high-confidence verification path: current main keeps Matrix approval reaction targets process-local, while the PR adds SDK-store register/lookup/delete behind that cache. Next step before merge Security Review detailsBest possible solution: Land this Matrix-only split after maintainer acceptance and exact-head validation, or fold the Matrix portion into #75053 if maintainers choose the broader migration. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature PR. Source inspection gives a high-confidence verification path: current main keeps Matrix approval reaction targets process-local, while the PR adds SDK-store register/lookup/delete behind that cache. Is this the best way to solve the issue? Unclear pending maintainer choice. The implementation is narrow and consistent with adjacent Slack/Discord best-effort persistence, but the best landing path depends on maintainer sequencing versus #75053 and completed exact-head checks. Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 95cee64ca6e8. |
e999ccb to
38b87fe
Compare
38b87fe to
02f924a
Compare
…eleased Both #75585 (msteams sent-message marker persistence) and #75586 (matrix approval reaction target persistence) landed on main 2026-05-03 but appended their changelog entries under `## 2026.4.30`, which was finalized on 2026-05-01. Move them under `## Unreleased ### Fixes` so the released section stays frozen and the new fixes are credited in the right release window. Thanks @amknight.
* matrix: persist approval reaction targets best-effort * docs: refine matrix approval changelog
…eleased Both openclaw#75585 (msteams sent-message marker persistence) and openclaw#75586 (matrix approval reaction target persistence) landed on main 2026-05-03 but appended their changelog entries under `## 2026.4.30`, which was finalized on 2026-05-01. Move them under `## Unreleased ### Fixes` so the released section stays frozen and the new fixes are credited in the right release window. Thanks @amknight.
* matrix: persist approval reaction targets best-effort * docs: refine matrix approval changelog
…eleased Both openclaw#75585 (msteams sent-message marker persistence) and openclaw#75586 (matrix approval reaction target persistence) landed on main 2026-05-03 but appended their changelog entries under `## 2026.4.30`, which was finalized on 2026-05-01. Move them under `## Unreleased ### Fixes` so the released section stays frozen and the new fixes are credited in the right release window. Thanks @amknight.
* matrix: persist approval reaction targets best-effort * docs: refine matrix approval changelog
…eleased Both openclaw#75585 (msteams sent-message marker persistence) and openclaw#75586 (matrix approval reaction target persistence) landed on main 2026-05-03 but appended their changelog entries under `## 2026.4.30`, which was finalized on 2026-05-01. Move them under `## Unreleased ### Fixes` so the released section stays frozen and the new fixes are credited in the right release window. Thanks @amknight.
* matrix: persist approval reaction targets best-effort * docs: refine matrix approval changelog
…eleased Both openclaw#75585 (msteams sent-message marker persistence) and openclaw#75586 (matrix approval reaction target persistence) landed on main 2026-05-03 but appended their changelog entries under `## 2026.4.30`, which was finalized on 2026-05-01. Move them under `## Unreleased ### Fixes` so the released section stays frozen and the new fixes are credited in the right release window. Thanks @amknight.
Summary
Split from #75053. This migrates only Matrix approval reaction targets to best-effort SDK-backed persistence behind the existing in-memory target map.
Matrix still resolves reaction targets from memory first. Once the Matrix runtime is available, pending approval reaction targets mirror to
api.runtime.state.openKeyedStorenamespacematrix.approval-reactions. After a Gateway restart, reactions on still-pending approval prompts can resolve from the persisted target until the prompt TTL expires.If the SQLite-backed store is unavailable or any persistent operation fails, Matrix logs the failure, disables persistent access for the process, and keeps the previous process-local behavior.
Files / behavior
extensions/matrix/src/approval-reactions.tsextensions/matrix/src/approval-handler.runtime.tsextensions/matrix/src/matrix/monitor/reaction-events.tsextensions/matrix/src/runtime.tsValidation
Local from
../openclaw-plugin-state-matrix-default-on:pnpm test extensions/matrix/src/approval-reactions.test.ts extensions/matrix/src/matrix/monitor/reaction-events.test.ts extensions/matrix/src/approval-handler.runtime.test.ts— passedpnpm exec oxfmt --check --threads=1 <touched ts files>— passedgit diff HEAD --check— passedpnpm check:changed— passed