Skip to content

fix(openclaw-plugin): remove duplicate const sessionId declaration in ov_archive_expand#1059

Open
evaldass wants to merge 1 commit intovolcengine:mainfrom
evaldass:fix/openclaw-plugin-duplicate-sessionid
Open

fix(openclaw-plugin): remove duplicate const sessionId declaration in ov_archive_expand#1059
evaldass wants to merge 1 commit intovolcengine:mainfrom
evaldass:fix/openclaw-plugin-duplicate-sessionid

Conversation

@evaldass
Copy link
Copy Markdown

Problem

index.ts line 722 re-declares const sessionId = ctx.sessionId ?? "" which was already declared on line 711 within the same execute() scope of the ov_archive_expand tool handler.

This causes a ParseError when OpenClaw loads the plugin:

ParseError: Identifier 'sessionId' has already been declared.
 /home/…/.openclaw/extensions/openviking/index.ts:722:14

Fix

Removed the duplicate declaration on line 722. The existing sessionId from line 711 is reused for the subsequent !sessionId && !sessionKey guard.

Diff

-        const sessionId = ctx.sessionId ?? "";
         const sessionKey = ctx.sessionKey ?? "";

One line removed, no behavior change.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Evaldas seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
Copy link
Copy Markdown

Failed to generate code suggestions for PR

… 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.
@evaldass evaldass force-pushed the fix/openclaw-plugin-duplicate-sessionid branch from b703a55 to 92703d6 Compare March 28, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants