Skip to content

Plugin hook error: 364 #535

Description

@liangxiao777

claude-mem version: v8.5.6
claude code version: v2.0.76
System information: WSL2+Ubuntu 22.04.5 LTS

I installed using the command "/plugin install claude-mem" as per the documentation, then restarted Claude Code, created a new session, sent "hi", and encountered the following error:

  ⎿  UserPromptSubmit says: Plugin hook error: 364 |     `).all(e),i=new Set,a=new Set;for(let o of n){if(o.files_read){let
     s=JSON.parse(o.files_read);Array.
                                   ^
     error: "a" has already been declared
         at /home/lxiao/.claude/plugins/cache/thedotmack/claude-mem/8.5.6/scripts/worker-service.cjs:364:25

     360 |     `).get(e)||null}getFilesForSession(e){let a=this.db.prepare(`
                                                         ^
     note: "a" was originally declared here
        at /home/lxiao/.claude/plugins/cache/thedotmack/claude-mem/8.5.6/scripts/worker-service.cjs:360:47

     Bun v1.3.5 (Linux x64)

Screenshot as follows::

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions