fix(plugin): use OpenClaw gateway_start/gateway_stop hooks

This commit is contained in:
zhi
2026-03-20 06:36:20 +00:00
parent 8ebc76931f
commit 55b17e35ea

View File

@@ -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();
});