refactor(agent): 重命名 can_edit_message 为 is_auto_flushing 更贴切语义

This commit is contained in:
jxxghp
2026-04-09 23:29:29 +08:00
parent 22f3244bf5
commit 75fca971d4
2 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ class MoviePilotTool(BaseTool, metaclass=ABCMeta):
# 发送工具执行过程消息
if self._stream_handler and self._stream_handler.is_streaming:
if settings.AI_AGENT_VERBOSE:
if self._stream_handler.can_edit_message:
if self._stream_handler.is_auto_flushing:
# 渠道支持编辑:工具消息追加到 buffer由定时刷新推送
if tool_message:
self._stream_handler.emit(f"\n\n⚙️ => {tool_message}\n\n")