fix(web): avoid clearing assistant content before saving

This commit is contained in:
JOJO 2025-11-18 10:56:35 +08:00
parent 41bc56491f
commit 92c3e25f7a

View File

@ -3013,12 +3013,6 @@ async def handle_task_with_sender(terminal: WebTerminal, message, sender, client
'content': f'⚠️ 追加写入失败:{append_result.get("error")}'
})
# 重置文本流状态,避免后续错误处理
text_streaming = False
text_started = False
text_has_content = False
full_response = ""
if modify_result["handled"]:
modify_metadata = modify_result.get("assistant_metadata")
modify_content_text = modify_result.get("assistant_content")