Files
open-webui/backend/open_webui/utils
Classic298 60ded561a9 fix: load models before resolving automation model defaults (#30379)
Automations lost their model's tool bindings (including MCP servers), default features such as web search, default filters and terminal on the first run after a restart. The model then answered that it had no tools. Later runs and a manual Regenerate worked. Automations on the base models cache were not affected.

The run read the model from app.state.MODELS before anything had loaded it. After a restart or a connection settings save, that cache stays empty until a browser loads the model list or a chat completion runs. The completion runs only after the automation has already built its request.

execute_automation now loads the models when the cache is empty, using the same guard chat_completion uses, before either the chat or the channel target reads it. This also fixes channel automations showing the raw model ID in place of the model name on a cold cache.

Verified end to end on a restarted instance with a mock upstream: before, both chat and channel runs reached the pipeline without tool_ids or features. After, both carry the model's tools and web search, and the upstream receives the tool.

Fixes #27694
2026-09-23 23:51:29 -04:00
..
2026-09-21 11:35:30 -04:00
2026-09-12 14:57:22 -04:00
2026-08-24 18:29:36 -04:00
2026-09-19 17:54:09 -04:00
2026-07-23 02:54:56 -04:00
2026-07-26 21:12:14 -04:00
2026-07-31 17:41:14 -04:00
2026-08-23 13:36:53 -04:00
2026-08-31 01:29:36 -04:00
…
2026-09-12 15:41:57 -04:00
2026-07-26 23:09:22 -04:00
2026-08-16 22:56:19 -07:00
2026-08-17 00:57:57 -07:00
2026-08-24 18:29:36 -04:00
2026-09-21 11:35:30 -04:00
2026-08-25 16:53:53 -04:00
2026-06-19 00:16:06 +02:00
2026-09-19 17:33:41 -04:00
2026-08-25 16:53:53 -04:00
2026-09-15 22:47:03 -04:00
2026-07-31 17:41:14 -04:00