Skip to content

Commit 847393c

Browse files
fix(plugin): add noopPrefixes to prevent gateway restart loop
OpenClaw's reload watcher classifies all `plugins.*` config changes as requiring a gateway restart. The plugin loader updates resolvedAt and installedAt timestamps in openclaw.json on every startup for npm-installed plugins, causing an infinite restart loop. Declare `noopPrefixes: ["plugins.installs.botschat"]` so the reload watcher ignores install metadata changes. This is a defense-in-depth fix alongside the upstream OpenClaw PR (openclaw/openclaw#41007). Bump version to 0.1.20.
1 parent 92e64f8 commit 847393c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@botschat/botschat",
3-
"version": "0.1.18",
3+
"version": "0.1.20",
44
"description": "BotsChat channel plugin for OpenClaw — connects your OpenClaw agent to the BotsChat cloud platform",
55
"type": "module",
66
"main": "dist/index.js",

packages/plugin/src/channel.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,10 @@ export const botschatPlugin = {
242242
},
243243
},
244244

245-
reload: { configPrefixes: ["channels.botschat"] },
245+
reload: {
246+
configPrefixes: ["channels.botschat"],
247+
noopPrefixes: ["plugins.installs.botschat"],
248+
},
246249

247250
config: {
248251
listAccountIds: (cfg: unknown) => listBotsChatAccountIds(cfg),

0 commit comments

Comments
 (0)