This commit is contained in:
tcmofashi
2026-04-03 23:18:30 +08:00
parent 185361f2c3
commit 7b9e1cf925
40 changed files with 52 additions and 86 deletions

View File

@@ -205,7 +205,7 @@ class HeartFChatting:
# TODO: Planner逻辑
# TODO: 动作执行逻辑
cycle_detail = self._end_cycle(current_cycle_detail)
self._end_cycle(current_cycle_detail)
await asyncio.sleep(0.1) # 最小等待时间,避免过快循环
return True

View File

@@ -12,7 +12,6 @@ from src.chat.heart_flow.heartflow_message_processor import HeartFCMessageReceiv
from src.common.logger import get_logger
from src.common.utils.utils_message import MessageUtils
from src.common.utils.utils_session import SessionUtils
from src.config.config import global_config
from src.platform_io.route_key_factory import RouteKeyFactory
from src.core.announcement_manager import global_announcement_manager
from src.plugin_runtime.component_query import component_query_service

View File

@@ -1135,9 +1135,6 @@ class DefaultReplyer:
return content, reasoning_content, model_name, tool_calls
async def get_prompt_info(self, message: str, sender: str, target: str):
del message
del sender
del target
return ""
related_info = ""
start_time = time.time()

View File

@@ -1058,12 +1058,9 @@ class StatisticOutputTask(AsyncTask):
from src.chat.message_receive.chat_manager import chat_manager as _stat_chat_manager
if chat_id in _stat_chat_manager.sessions:
session = _stat_chat_manager.sessions[chat_id]
name = _stat_chat_manager.get_session_name(chat_id)
if name and name.strip():
return name.strip()
if user_name and user_name.strip():
return user_name.strip()
# 如果从chat_stream获取失败尝试解析chat_id格式
if chat_id.startswith("g"):

View File

@@ -92,7 +92,6 @@ class UniversalMessageSender:
"""
# TODO: 重构至新的发送模型
message_preview = (message.processed_plain_text or "")[:200]
platform = message.platform
try:
# 尝试通过主 API 发送