From 8c0c7b3b6caf1888e9adfba50daebc880d922df2 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 31 Aug 2026 10:19:05 -0400 Subject: [PATCH 1/8] refac --- backend/open_webui/config.py | 1 + backend/open_webui/models/calendar.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index acd3d83bf8..a0855f4689 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -74,6 +74,7 @@ def run_migrations(): command.upgrade(alembic_cfg, 'head') except Exception as e: log.exception(f'Error running migrations: {e}') + raise if ENABLE_DB_MIGRATIONS: diff --git a/backend/open_webui/models/calendar.py b/backend/open_webui/models/calendar.py index 835313c703..3a3147a7ad 100644 --- a/backend/open_webui/models/calendar.py +++ b/backend/open_webui/models/calendar.py @@ -8,7 +8,6 @@ from open_webui.constants import ERROR_MESSAGES from open_webui.models.access_grants import AccessGrantModel, AccessGrants from open_webui.models.groups import Groups from open_webui.models.users import User, UserModel, UserResponse -from open_webui.utils.automations import rrule_interval_seconds from pydantic import BaseModel, ConfigDict, Field, field_validator from sqlalchemy import ( JSON, @@ -198,6 +197,8 @@ class CalendarEventForm(BaseModel): @classmethod def reject_sub_daily_rrule(cls, value: Optional[str]) -> Optional[str]: if value: + from open_webui.utils.automations import rrule_interval_seconds + try: interval = rrule_interval_seconds(value) except ValueError: @@ -228,6 +229,8 @@ class CalendarEventUpdateForm(BaseModel): @classmethod def reject_sub_daily_rrule(cls, value: Optional[str]) -> Optional[str]: if value: + from open_webui.utils.automations import rrule_interval_seconds + try: interval = rrule_interval_seconds(value) except ValueError: From 1457000ba66547b24bd98012aa35ac16fd4bc696 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 31 Aug 2026 10:27:01 -0400 Subject: [PATCH 2/8] refac --- .../chat/MessageInput/IntegrationsMenu.svelte | 2 +- src/tailwind.css | 21 ++++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/lib/components/chat/MessageInput/IntegrationsMenu.svelte b/src/lib/components/chat/MessageInput/IntegrationsMenu.svelte index 17a4a308e0..7d21661764 100644 --- a/src/lib/components/chat/MessageInput/IntegrationsMenu.svelte +++ b/src/lib/components/chat/MessageInput/IntegrationsMenu.svelte @@ -524,7 +524,7 @@ - {#if (tools?.[toolId]?.authenticated ?? true) && toolId.startsWith('server:mcp:')} + {#if tools?.[toolId]?.authenticated === true && toolId.startsWith('server:mcp:')}