mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-23 10:55:31 -06:00
4f860bfab0
* fix(reasoning-tags): strip MiniMax `mm:` namespaced reasoning tags MiniMax M3 (e.g. via Fireworks) emits its chain-of-thought inline in the content stream wrapped in `<mm:think>…</mm:think>` rather than in a separate `reasoning_content` field. The reasoning-tag stripper only recognized the `antml:` namespace, so `mm:`-namespaced tags slipped through QUICK_TAG_RE and leaked the model's hidden reasoning into visible chat output. Accept the `mm:` prefix alongside `antml:` in the shared sanitizer (reasoning-tags.ts) and in the Telegram reasoning-lane coordinator's tag regex and prefix list. Adds unit tests covering mm: think/thinking/thought blocks, truncated-open orphan close recovery, and code-fence preservation. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(reasoning): handle MiniMax tags in streams --------- Co-authored-by: DrHack1 <DrHack1@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Vincent Koc <25068+vincentkoc@users.noreply.github.com>