Files
openclaw/extensions
kinjitakabe 6789fe248b fix(mattermost): diagnose silent final-delivery completions
`deliverMattermostReplyPayload` accepted a substantive (non-reasoning) reply
payload, called the shared `deliverTextOrMediaReply`, and dropped its
`"empty"|"text"|"media"` return value on the floor. When the underlying chunker
or media-resolution produced no text and no media to send, the function
returned `Promise<void>` and the caller in `monitor.ts` unconditionally logged
`delivered reply to <channel>` — masking a silent completion where no
Mattermost API send ever happened (the symptom in #80501).

Thread the outcome through the helper, evaluate it against the original
payload to distinguish intentional reasoning suppression from a substantive
payload that vanished, and log a structured `mattermost no-visible-reply`
diagnostic for the substantive-vanished case. The misleading "delivered
reply to" log now only fires on actual visible delivery; reasoning-skipped
payloads correctly stay silent.

No behavior change: visible-delivery decisions, preview-finalization, and the
existing reasoning-suppression contract are untouched. Operators can now grep
the new diagnostic to detect the failure class instead of seeing the agent
appear to go silent.

Fixes #80501.
2026-05-14 08:29:07 +01:00
..
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-13 06:01:48 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 07:10:13 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-14 10:35:18 +08:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-12 06:33:41 +01:00
2026-05-13 06:07:49 +01:00
2026-05-12 07:10:13 +01:00