From 23a853b18ece4428ca64231f22e38960b5d66c13 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Thu, 7 May 2026 02:51:51 +0530 Subject: [PATCH] fix(connectors): allow Gmail and Calendar live connectors to index --- .../app/routes/search_source_connectors_routes.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/surfsense_backend/app/routes/search_source_connectors_routes.py b/surfsense_backend/app/routes/search_source_connectors_routes.py index 9037d275a..e5ba717b0 100644 --- a/surfsense_backend/app/routes/search_source_connectors_routes.py +++ b/surfsense_backend/app/routes/search_source_connectors_routes.py @@ -809,7 +809,16 @@ async def index_connector_content( from app.services.mcp_oauth.registry import LIVE_CONNECTOR_TYPES - if connector.connector_type in LIVE_CONNECTOR_TYPES: + indexable_live_connector_types = { + SearchSourceConnectorType.GOOGLE_CALENDAR_CONNECTOR, + SearchSourceConnectorType.COMPOSIO_GOOGLE_CALENDAR_CONNECTOR, + SearchSourceConnectorType.GOOGLE_GMAIL_CONNECTOR, + SearchSourceConnectorType.COMPOSIO_GMAIL_CONNECTOR, + } + if ( + connector.connector_type in LIVE_CONNECTOR_TYPES + and connector.connector_type not in indexable_live_connector_types + ): return { "message": ( f"{connector.connector_type.value} uses real-time agent tools; "