fix: 简化清空逻辑 - 空消息列表即清空

This commit is contained in:
root
2026-04-15 11:10:29 +08:00
parent b86610d445
commit a282ec1a58
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class BackendClient:
packet = Packet(
id=self._next_id(),
type=PacketType.SAVE_HISTORY,
body={"messages": [{"action": "clear"}]}
body={"messages": []}
)
return self._server.send(packet).body