Files
openclaw/extensions
hcl 38aac70830 fix(feishu): skip empty-text messages with no media to prevent blank session turns (#74634) (#74661)
Feishu delivers empty-text events (e.g. {"text":""}) when users send
blank messages or when a media-only message produces no text content.
Writing a blank user turn to the session file causes downstream LLM
providers such as MiniMax to reject requests with:

  invalid params, messages must not be empty (2013)

Guard at the point after media resolution: if ctx.content.trim() is
empty AND mediaList is empty, log the skip and return without queuing
a reply. This preserves all existing behaviour for text, media, and
mixed messages.

Regression test: dispatch a DM with {"text":""} (no media), assert
mockDispatchReplyFromConfig is not called.

Closes #74634. Thanks @xdengli.
2026-04-30 04:24:27 +00:00
..
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00
2026-04-30 05:16:25 +01:00
2026-04-29 22:42:45 +01:00
2026-04-29 22:42:45 +01:00