From 89475095d9e920473cfb56db8f9711db97048742 Mon Sep 17 00:00:00 2001 From: Tim O'Farrell Date: Fri, 6 Feb 2026 04:29:28 -0700 Subject: [PATCH] Preload callback processor class to prevent Pydantic Deserialization Error (#12776) --- enterprise/saas_server.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/enterprise/saas_server.py b/enterprise/saas_server.py index 1734536d53..e8c1935cb5 100644 --- a/enterprise/saas_server.py +++ b/enterprise/saas_server.py @@ -78,8 +78,15 @@ base_app.include_router(shared_event_router) # Add GitHub integration router only if GITHUB_APP_CLIENT_ID is set if GITHUB_APP_CLIENT_ID: + # Make sure that the callback processor is loaded here so we don't get an error when deserializing + from integrations.github.github_v1_callback_processor import ( # noqa: E402 + GithubV1CallbackProcessor, + ) from server.routes.integration.github import github_integration_router # noqa: E402 + # Bludgeon mypy into not deleting my import + logger.debug(f'Loaded {GithubV1CallbackProcessor.__name__}') + base_app.include_router( github_integration_router ) # Add additional route for integration webhook events