From 48288e9ce7fbfa938bc8f6dc148eff6c6fd82644 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 1 Apr 2026 00:41:08 -0500 Subject: [PATCH] refac --- backend/open_webui/utils/automations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/utils/automations.py b/backend/open_webui/utils/automations.py index 5fa67744e3..7a3ea7453e 100644 --- a/backend/open_webui/utils/automations.py +++ b/backend/open_webui/utils/automations.py @@ -300,7 +300,7 @@ async def execute_automation(app, automation: AutomationModel) -> None: "title": automation.name, "models": [model_id], "history": { - "currentId": user_msg_id, + "currentId": assistant_msg_id, "messages": { user_msg_id: { "id": user_msg_id, @@ -316,6 +316,7 @@ async def execute_automation(app, automation: AutomationModel) -> None: "parentId": user_msg_id, "role": "assistant", "content": "", + "done": False, "model": model_id, "childrenIds": [], "timestamp": int(time.time()),