From 55b17e35ea69e340ecd292b2f29ccf2657c17673 Mon Sep 17 00:00:00 2001 From: zhi Date: Fri, 20 Mar 2026 06:36:20 +0000 Subject: [PATCH] fix(plugin): use OpenClaw gateway_start/gateway_stop hooks --- plugin/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/index.ts b/plugin/index.ts index 84b10fd..9dc7e05 100644 --- a/plugin/index.ts +++ b/plugin/index.ts @@ -148,12 +148,12 @@ export default function register(api: PluginAPI, rawConfig: PluginConfig | Plugi } // Hook into Gateway lifecycle - api.on('gateway:start', () => { + api.on('gateway_start', () => { logger.info('Gateway starting, starting telemetry server...'); startSidecar(); }); - api.on('gateway:stop', () => { + api.on('gateway_stop', () => { logger.info('Gateway stopping, stopping telemetry server...'); stopSidecar(); });