Skip to content

[Bug]: Bundled hooks not loaded - "openclaw hooks list" shows 0 hooks despite config enabled #10338

@kaipengfang

Description

@kaipengfang

Summary

Bundled hooks (session-memory, boot-md, command-logger) are not being loaded by the hook system, even though they are enabled in config and the hook files exist.

Environment

  • OpenClaw version: 2026.2.3-1 (d84eb46)
  • OS: macOS (Darwin 25.1.0 arm64)
  • Node: v25.5.0

Steps to Reproduce

  1. Fresh install of OpenClaw 2026.2.3-1
  2. Config has hooks enabled:
"hooks": {
  "internal": {
    "enabled": true,
    "entries": {
      "boot-md": { "enabled": true },
      "command-logger": { "enabled": true },
      "session-memory": { "enabled": true }
    }
  }
}
  1. Run openclaw hooks list
  2. Run openclaw hooks check

Expected Behavior

Should list bundled hooks (session-memory, boot-md, command-logger) as available.

Actual Behavior

$ openclaw hooks list
No hooks found.

$ openclaw hooks check
Hooks Status

Total hooks: 0
Ready: 0
Not ready: 0

$ openclaw hooks info session-memory
Hook "session-memory" not found. Run `openclaw hooks list` to see available hooks.

Evidence

Bundled hook files exist:

$ ls /opt/homebrew/lib/node_modules/openclaw/dist/hooks/bundled/
boot-md/  command-logger/  session-memory/  soul-evil/

Gateway logs show:

2026-02-06T10:16:49.940Z info Hook "session-memory" not found.

Impact

  • /new command does not save session memory to memory/YYYY-MM-DD-slug.md
  • The session-memory hook was working in earlier versions (evidence: memory/2026-02-06-0457.md was auto-generated earlier today)

Additional Context

The hook worked earlier today, suggesting this might be a race condition or state issue rather than a permanent loading failure.

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