fix(agents): recover unclosed reasoning-only replies · openclaw/openclaw@c0ea89c
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -100,6 +100,8 @@ title: "Thinking levels"
|
100 | 100 | - Send `/reasoning` (or `/reasoning:`) with no argument to see the current reasoning level. |
101 | 101 | - Resolution order: inline directive, then session override, then per-agent default (`agents.list[].reasoningDefault`), then fallback (`off`). |
102 | 102 | |
| 103 | +Malformed local-model reasoning tags are handled conservatively. Closed `<think>...</think>` blocks stay hidden on normal replies, and unclosed reasoning after already visible text is also hidden. If a reply is fully wrapped in a single unclosed opening tag and would otherwise deliver as empty text, OpenClaw removes the malformed opening tag and delivers the remaining text. |
| 104 | + |
103 | 105 | ## Related |
104 | 106 | |
105 | 107 | - Elevated mode docs live in [Elevated mode](/tools/elevated). |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。