open-webui/backend/open_webui/models
Classic298 641c82df19
fix: automations, timers and sub-agents fail with "Message already exists" (#32177)
Automation runs, timers and sub-agents stopped getting a reply after the shared chats rework: the chat shows an empty answer and the run fails with `409 Message already exists or has an invalid ID.` Each of them creates the empty answer before asking the model, and the backend began refusing to fill an answer that is already in the chat; the server-side API flow in the docs and API calls without a user message broke the same way. Such an empty answer is now filled in again when it belongs to the same user and answers the same message, and API calls without a user message work as before, saving the reply on its own as the docs describe. A firing timer or sub-agent also no longer cancels the chat's other timers that are set to stop when the user writes next. Answers that are already finished, or that belong to another user in a shared chat, are still refused.

Fixes #32066
2026-10-10 20:02:54 +04:00
..
access_grants.py refac 2026-10-09 15:07:43 +04:00
auths.py refac 2026-10-05 12:17:25 +04:00
automations.py fix: automation still shows "Last run Never" after "Run now" (#31583) 2026-09-30 19:01:42 +04:00
calendar.py refac 2026-10-05 14:01:02 +04:00
channels.py refac 2026-10-05 14:01:02 +04:00
chat_messages.py refac 2026-10-08 14:30:07 +04:00
chats.py fix: automations, timers and sub-agents fail with "Message already exists" (#32177) 2026-10-10 20:02:54 +04:00
config.py refac 2026-10-05 12:17:25 +04:00
feedbacks.py perf: drop redundant session.refresh calls after commit across the model layer (#27381) 2026-07-23 18:08:00 -05:00
files.py perf: drop redundant session.refresh calls after commit across the model layer (#27381) 2026-07-23 18:08:00 -05:00
folders.py refac 2026-10-08 19:36:27 +04:00
function_history.py refac 2026-10-09 18:37:55 +04:00
functions.py refac 2026-10-09 18:37:55 +04:00
groups.py refac 2026-10-05 14:35:15 +04:00
knowledge.py refac 2026-10-09 16:17:11 +04:00
memories.py refac 2026-07-24 01:54:36 -04:00
messages.py chore: remove dead json imports (#27815) 2026-07-31 17:25:40 -04:00
model_history.py refac 2026-10-09 17:05:53 +04:00
models.py refac 2026-10-09 17:05:53 +04:00
notes.py refac 2026-10-08 01:09:29 +04:00
oauth_sessions.py refac 2026-07-31 17:41:14 -04:00
prompt_history.py refac 2026-10-09 16:17:11 +04:00
prompts.py refac 2026-10-05 14:01:02 +04:00
shared_chats.py refac 2026-10-08 14:30:07 +04:00
skill_history.py refac 2026-10-09 16:31:34 +04:00
skills.py fix: skill versions saved within the same second are listed in random order (#32167) 2026-10-10 19:49:21 +04:00
tags.py perf: build debug log messages lazily so disabled debug logs cost nothing (#27834) 2026-07-31 19:09:01 -05:00
tool_history.py refac 2026-10-09 18:37:55 +04:00
tools.py refac 2026-10-09 18:37:55 +04:00
users.py fix: user created in the same second as the first admin takes over its protection (#32157) 2026-10-10 20:01:41 +04:00