Skip to content

灯光已关闭,但前缀呢?

Choose a tag to compare

@knoop7 knoop7 released this 09 May 03:13

Bug 修复

  • Agent 前缀玩捉迷藏 — "关闭灯光2" → "灯光2已关闭",前缀没了。排查发现 hooked_async_converse 在遇到非 claw agent 时直接调用了原始未 patch 的 async_converse,格式化被完美绕过。已修复,现在所有响应都带 (Claw Assistant) 回复: 前缀。
  • HA 内置 intent 偷渡 — Pipeline 的 recognize_intent 匹配本地 intent 后直接拼接 result,不走 async_converse。已对 async_handle_intents 下钩子,堵死这条小路。
  • 孤儿 tool_results 清理 — 上一轮残留的 tool results 不再污染下一轮对话。
  • 进度条挤在一起 — 工具执行进度行 (┊) 终于有了正经的段落分隔。

改进

  • /help 颜值升级 — 子命令带父命令标题分组显示,尖括号不再被 markdown 吃掉。
  • 删掉多余的 "可用命令:" — 前缀已经说了是谁在回复,header 纯属废话。
  • ai_hub intent 精简钩子 — 严格匹配模式,不该管的不管。
  • Debug 日志_maybe_apply_global_response_format 现在会告诉你它为啥跳过或执行,下次出 bug 不用猜。

Bug Fixes

  • Agent prefix went AWOL — "Turn off light 2" → "Light 2 is off", the (Claw Assistant) prefix vanished. hooked_async_converse was calling the raw un-patched async_converse for non-claw agents, skipping formatting entirely. Fixed.
  • HA built-in intents sneaking past — Pipeline's recognize_intent matches local intents and builds the result directly, never touching async_converse. Hooked async_handle_intents to close this backdoor.
  • Orphaned tool_results cleanup — Stale tool results from previous turns no longer haunt the next conversation.
  • Progress lines learned personal space — Tool progress indicators (┊) now have proper paragraph breaks.

Improvements

  • /help glow-up — Subcommands grouped under parent headers, angle brackets properly escaped.
  • Removed redundant "Available commands:" header — The agent prefix already tells you who's talking.
  • ai_hub intent hook tightened — Strict local match only, mind your own business.
  • Debug logging_maybe_apply_global_response_format now tells you exactly why it skipped or applied. No more guessing games.

Full Changelog: v7.4.0...v7.5.0