Repository navigation
msteams: persist sent-message markers best-effort - #75585
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: Do we have a high-confidence way to reproduce the issue? Not applicable as a feature PR rather than a bug report; source inspection clearly shows current main is process-local only and the PR head adds restart recovery through the SDK keyed store. Next step before merge Security Review detailsBest possible solution: Land the Teams-only persistence split after maintainer approval and exact-head CI are clean, preserving the memory-first fallback and TTL-preserving recovery behavior. Do we have a high-confidence way to reproduce the issue? Do we have a high-confidence way to reproduce the issue? Not applicable as a feature PR rather than a bug report; source inspection clearly shows current main is process-local only and the PR head adds restart recovery through the SDK keyed store. Is this the best way to solve the issue? Is this the best way to solve the issue? Yes for the scoped Teams implementation: it uses the existing SDK keyed-store seam behind the in-memory fast path and preserves marker TTL, while merge sequencing and CI remain maintainer concerns. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 74f243a0d0b9. |
b5a640d to
13d10a2
Compare
d54d015 to
31adcb8
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.
* msteams: persist sent-message markers best-effort * docs: clarify Teams restart persistence changelog * msteams: remove redundant sent-message TTL comment * msteams: preserve sent-message marker TTL on recovery
…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.
* msteams: persist sent-message markers best-effort * docs: clarify Teams restart persistence changelog * msteams: remove redundant sent-message TTL comment * msteams: preserve sent-message marker TTL on recovery
…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.
* msteams: persist sent-message markers best-effort * docs: clarify Teams restart persistence changelog * msteams: remove redundant sent-message TTL comment * msteams: preserve sent-message marker TTL on recovery
…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.
* msteams: persist sent-message markers best-effort * docs: clarify Teams restart persistence changelog * msteams: remove redundant sent-message TTL comment * msteams: preserve sent-message marker TTL on recovery
…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 Microsoft Teams sent-message markers to best-effort SDK-backed persistence behind the existing in-memory cache.
Teams still checks memory first. Once the Teams runtime is available, sent outbound message ids mirror to
api.runtime.state.openKeyedStorenamespacemsteams.sent-messages. After a Gateway restart, reply-to-bot classification can recover recent bot-sent markers and backfill memory so subsequent checks are sync again.If the SQLite-backed store is unavailable or any persistent operation fails, Teams logs the failure, disables persistent access for the process, and keeps the previous process-local behavior.
Files / behavior
extensions/msteams/src/sent-message-cache.tsextensions/msteams/src/monitor-handler/message-handler.tsextensions/msteams/src/runtime.tsValidation
Local from
../openclaw-plugin-state-msteams-default-on:pnpm test extensions/msteams/src/sent-message-cache.test.ts extensions/msteams/src/monitor-handler/message-handler.authz.test.ts— passedpnpm exec oxfmt --check --threads=1 <touched ts files>— passedgit diff HEAD --check— passedpnpm check:changed— passed