From d1016fd65aaee262555e5dfb248cce646c32a4fe Mon Sep 17 00:00:00 2001 From: Roberto Date: Sat, 16 May 2026 04:18:33 +0200 Subject: [PATCH] feat(scouts): register GmailConnector at startup Adds GmailConnector registration to the FastAPI lifespan startup block, making it available via the connector registry for the ScoutEngine and any other startup-time consumers. Co-Authored-By: Claude Sonnet 4.6 --- app/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/main.py b/app/main.py index cd3c0dd..1e1be3d 100644 --- a/app/main.py +++ b/app/main.py @@ -79,6 +79,11 @@ async def _memory_cron_tick() -> None: @asynccontextmanager async def lifespan(app: FastAPI): + # Startup: register source connectors. + from app.scouts.connectors.gmail import GmailConnector # noqa: PLC0415 + from app.scouts.connectors.registry import register_connector # noqa: PLC0415 + register_connector(GmailConnector()) + # Startup: ensure agent tool modules are loaded. import app.agents # noqa: F401