From 92703d656a626d6a079ca130ad6d5c2fab9cb3c8 Mon Sep 17 00:00:00 2001 From: Evaldas Date: Sat, 28 Mar 2026 15:20:53 +0000 Subject: [PATCH] fix(openclaw-plugin): remove duplicate const sessionId declaration in ov_archive_expand Line 722 re-declared `const sessionId = ctx.sessionId ?? ""` which was already declared on line 711 within the same execute() scope. This caused a ParseError at plugin load time: Identifier 'sessionId' has already been declared. /home/.../.openclaw/extensions/openviking/index.ts:722:14 Removed the duplicate declaration so the existing sessionId from line 711 is reused. --- examples/openclaw-plugin/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/openclaw-plugin/index.ts b/examples/openclaw-plugin/index.ts index c1c904bb..7692d077 100644 --- a/examples/openclaw-plugin/index.ts +++ b/examples/openclaw-plugin/index.ts @@ -719,7 +719,6 @@ const contextEnginePlugin = { }; } - const sessionId = ctx.sessionId ?? ""; const sessionKey = ctx.sessionKey ?? ""; if (!sessionId && !sessionKey) { return {