From 15dc0e08af65e05ac6daa472b314a455bdf62c6a Mon Sep 17 00:00:00 2001 From: HirokiKobayashi-R Date: Thu, 29 Jan 2026 16:10:44 +0900 Subject: [PATCH] fix(gateway): prevent unnecessary restart on meta.lastTouchedAt changes When tools modify the config (e.g., `moltbot agents add`), the meta.lastTouchedAt field gets updated. Without a reload rule for "meta", this fell through to restartGateway=true, killing in-flight LLM requests and causing the agent to never respond. Added `{ prefix: "meta", kind: "none" }` to BASE_RELOAD_RULES_TAIL so meta field changes are ignored by the reload logic. Fixes #3811 --- src/gateway/config-reload.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gateway/config-reload.ts b/src/gateway/config-reload.ts index e9d6448d0..ce6b04110 100644 --- a/src/gateway/config-reload.ts +++ b/src/gateway/config-reload.ts @@ -82,6 +82,7 @@ const BASE_RELOAD_RULES_TAIL: ReloadRule[] = [ { prefix: "gateway", kind: "restart" }, { prefix: "discovery", kind: "restart" }, { prefix: "canvasHost", kind: "restart" }, + { prefix: "meta", kind: "none" }, ]; let cachedReloadRules: ReloadRule[] | null = null;