openclaw/extensions
teconomix 0ecdda1433 fix(mattermost): wait for in-flight preview send in onSettled cleanup
When the first preview POST is still in flight (patchSending=true, streamMessageId=null),
the previous onSettled check was skipped entirely — the POST would resolve after cleanup
and leave an orphaned preview post with no interval to clear it.

Fix: trigger cleanup when either streamMessageId is set OR patchSending is true.
Stop the interval immediately, clear pending state, then wait up to 3s for patchSending
to clear before capturing the final streamMessageId and deleting the post.
2026-03-20 07:15:22 +00:00
..
2026-03-18 01:02:16 -07:00