fix(web): avoid clearing assistant content before saving
This commit is contained in:
parent
41bc56491f
commit
92c3e25f7a
@ -3013,12 +3013,6 @@ async def handle_task_with_sender(terminal: WebTerminal, message, sender, client
|
|||||||
'content': f'⚠️ 追加写入失败:{append_result.get("error")}'
|
'content': f'⚠️ 追加写入失败:{append_result.get("error")}'
|
||||||
})
|
})
|
||||||
|
|
||||||
# 重置文本流状态,避免后续错误处理
|
|
||||||
text_streaming = False
|
|
||||||
text_started = False
|
|
||||||
text_has_content = False
|
|
||||||
full_response = ""
|
|
||||||
|
|
||||||
if modify_result["handled"]:
|
if modify_result["handled"]:
|
||||||
modify_metadata = modify_result.get("assistant_metadata")
|
modify_metadata = modify_result.get("assistant_metadata")
|
||||||
modify_content_text = modify_result.get("assistant_content")
|
modify_content_text = modify_result.get("assistant_content")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user