Files
OpenViking/examples/skills
Nguyen Thanh Datandqin-ctx c66fee4d12 fix(ov_dream): accept a message whose content is a plain string (#4221) (#4228)
* fix(ov_dream): accept a message whose content is a plain string (#4221)

parse_messages() assumed every OpenClaw message body was a block list.
Iterating a plain string yields characters, so `"p".get("type")` raised
AttributeError out of the parser — before any session was committed, which
made one such message disable the skill for the whole workspace rather than
skip that message. The reporter measured 91 string bodies in 1609 real
messages.

Flatten the body through a helper that treats a string as text and skips
blocks that are not dicts.

* test(ov_dream): consolidate string content coverage

---------

Co-authored-by: qin-ctx <qinhaojie.exe@bytedance.com>
2026-08-24 12:16:54 +08:00
..