Skip to content

v0.1.37

Choose a tag to compare

@hellowind777 hellowind777 released this 16 Sep 06:24
· 4 commits to main since this release

Release Notes — v0.1.37

Reasoning that discusses think tags no longer leaks into the visible reply

  • What you saw. v0.1.36 stripped inline think spans wherever they appeared in the stream, but it treated every literal tag occurrence as a delimiter — including tags a model wrote as quoted prose. Reasoning that discussed the tags themselves (for example analyzing a thinking-leak defect) terminated its own span at the first quoted </think>, and the rest of that reasoning leaked into the visible reply. Quoted tags inside visible text were stripped as well, so replies citing the tags arrived mangled. A related streaming-path defect: the non-streaming content peeler classified unbalanced closing-tag tails and removed stray closing tags on every SSE delta, consuming a closing tag before the turn-level state machine ever saw it, which could flash split tags in the reply.
  • What changed. A tag occurrence wrapped in backticks or double quotes is now treated as prose about the tags, not as a stream delimiter: quoted tags never open or close a span, only unquoted stray closing tags are removed, and quoted tags inside visible text reach the client intact. The unbalanced-tail classification and stray-close removal in the content path now apply only to complete message objects (those carrying a role); streaming deltas leave classification to the turn-level state machine as designed.

Restart both hellogrok executables after upgrading.


发布说明 — v0.1.37

谈论 think 标签的推理不再泄漏进可见正文

  • 你看到的现象。 v0.1.36 开始剥离流中任意位置的 think span,但它把每个字面标签出现都当作分隔符——包括模型作为引用正文写出的标签。当推理在讨论标签本身(例如分析思考泄漏缺陷)时,第一个被引用的 </think> 会提前终止自己的 span,其余推理随之泄漏进可见回复。可见正文中被引用的标签同样被剥掉,引用标签的回复到达时已不完整。另有一个流式路径的相关缺陷:非流式内容剥离器在每个 SSE 增量上执行无平衡闭标签推理尾判定与游离闭标签删除,会在回合级状态机看到之前消耗掉闭标签,可能让分裂的标签在回复中闪现。
  • 本次变化。 被反引号或双引号包住的标签出现现在按"讨论标签的正文"处理,不再作为流分隔符:被引用的开/闭标签不会打开或关闭 span,只有未被引用的游离闭标签会被删除,可见正文中被引用的标签原样送达。内容路径上的无平衡推理尾判定与游离闭标签删除只作用于完整消息对象(携带 role 的对象);流式增量按设计把分类交还给回合级状态机。

升级后请重启两个 hellogrok 可执行文件。