Skip to content

[Bug] Bundled hooks missing handler.ts in dist/ #10180

@ChanDava

Description

@ChanDava

[Bug] Bundled hooks missing handler.ts in dist/

Bug Description

Bundled hooks in dist/hooks/bundled/ are missing handler.ts files, only containing HOOK.md.

Steps to Reproduce

  1. Run openclaw hooks list
  2. Output: No hooks found.
  3. Check bundle directory:
    ls -la /opt/homebrew/lib/node_modules/openclaw/dist/hooks/bundled/session-memory/
    # Shows only HOOK.md, no handler.ts
    

Expected Behavior

Bundled hooks (session-memory, command-logger, boot-md, soul-evil) should be discovered and listed.

Environment

  • macOS (Darwin 25.2.0 arm64)
  • OpenClaw installed via npm
  • Version: Feb 5 2026 (recent update)

Root Cause

The dist/hooks/bundled/ directory contains HOOK.md files but the compiled handler.ts JavaScript files are missing from the npm package.

The source files may also not be included in the repository:

ls -la /opt/homebrew/lib/node_modules/openclaw/src/hooks/bundled/session-memory/
# src dir not found

Config

Hooks are enabled in config:

{
  "hooks": {
    "internal": {
      "enabled": true,
      "entries": {
        "session-memory": { "enabled": true },
        "boot-md": { "enabled": true },
        "command-logger": { "enabled": true }
      }
    }
  }
}

Workaround

Users must manually read workspace memory files (SOUL.md, USER.md, MEMORY.md, memory/YYYY-MM-DD.md) at the start of each session.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions