Bug: bootstrap-extra-files hook not injecting files into agent context
I've configured the bootstrap-extra-files hook in openclaw.json to inject additional files (SOUL.md, BOOTSTRAP.md, MEMORY.md) into subagent/agent context:
"hooks": {
"internal": {
"entries": {
"bootstrap-extra-files": {
"enabled": true,
"paths": [
"/path/to/agent/SOUL.md",
"/path/to/agent/BOOTSTRAP.md",
"/path/to/agent/MEMORY.md"
]
}
}
}
}
Expected: These files are loaded into the agent's context on every run (since contextInjection: "always" is default for bootstrap files).
Actual: The files are NOT injected. Agents only get the default AGENTS.md + TOOLS.md.
What I found: The function loadExtraBootstrapFilesWithDiagnostics exists in the OpenClaw codebase but appears to never be called. The hook config is parsed and stored, but the actual file loading doesn't happen.
Workaround: I put the content directly into AGENTS.md (which IS auto-injected). This breaks Single Point of Truth but works.
Setup: OpenClaw 2026.4.10 (44e5b62), two agents (main + felix as full agent with own workspace/agentDir), Ollama provider.
Can anyone confirm this bug? Is bootstrap-extra-files supposed to work, or is it not yet implemented?