From 3b711c8792fe873562246ca028564050068bc5c0 Mon Sep 17 00:00:00 2001 From: dingo Date: Sun, 12 Apr 2026 22:14:49 -0400 Subject: [PATCH] fix: AI pod ENABLED_SERVICES must include game to register AI handlers The sor-ai deployment ran with ENABLED_SERVICES=ai, but AddAiService is guarded by IsEnabled("game") in Program.cs. The AI handlers (GameAddAiHandler etc.) were never registered, so game.ai.add fell through to NATS remote dispatch, which timed out with "No internal service is available". Fix: set ENABLED_SERVICES=game,ai so the AI pod registers AddGameService (providing GameDbContext, IdentityDbContext, CollectionDbContext, CatalogDbContext and all game message handlers) before AddAiService adds the AI-specific handlers and session manager on top. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- deploy/k8s/deployment-ai.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/k8s/deployment-ai.yaml b/deploy/k8s/deployment-ai.yaml index 027b6e3..7068c82 100644 --- a/deploy/k8s/deployment-ai.yaml +++ b/deploy/k8s/deployment-ai.yaml @@ -34,7 +34,7 @@ spec: env: - name: ENABLED_SERVICES - value: "ai" + value: "game,ai" - name: ConnectionStrings__Default valueFrom: