灯光已关闭,但前缀呢?
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_conversewas calling the raw un-patchedasync_conversefor non-claw agents, skipping formatting entirely. Fixed. - HA built-in intents sneaking past — Pipeline's
recognize_intentmatches local intents and builds the result directly, never touchingasync_converse. Hookedasync_handle_intentsto 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
/helpglow-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_formatnow tells you exactly why it skipped or applied. No more guessing games.
Full Changelog: v7.4.0...v7.5.0