From 8374bc0496358b88cefc843f5777e3c366412351 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Thu, 9 Apr 2026 21:27:41 +0200 Subject: [PATCH] chore: skip agent manager if flag is false --- app/server/modules/lifecycle/bootstrap.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/server/modules/lifecycle/bootstrap.ts b/app/server/modules/lifecycle/bootstrap.ts index ee0535ff..c9d2acb6 100644 --- a/app/server/modules/lifecycle/bootstrap.ts +++ b/app/server/modules/lifecycle/bootstrap.ts @@ -8,8 +8,10 @@ let bootstrapPromise: Promise | undefined; const runBootstrap = async () => { await runDbMigrations(); await runMigrations(); - await agentManager.start(); - await spawnLocalAgent(); + if (process.env.ENABLE_LOCAL_AGENT === "true") { + await agentManager.start(); + await spawnLocalAgent(); + } await startup(); };