OpenClaw: System prompt context injection
The OpenClaw plugin no longer writes to MEMORY.md. Instead, it injects the observation timeline into each agent's system prompt via the before_prompt_build hook using appendSystemContext. This keeps MEMORY.md under the agent's control for curated long-term memory. Context is cached for 60 seconds per project.
New syncMemoryFileExclude config
Exclude specific agent IDs from automatic context injection (e.g., ["snarf", "debugger"]). Observations are still recorded for excluded agents — only the context injection is skipped.
Fix: UI settings now preserve falsy values
The viewer settings hook used || instead of ??, which silently replaced backend values like '0', 'false', and '' with UI defaults. Fixed with nullish coalescing. Frontend defaults now aligned with backend SettingsDefaultsManager.
Documentation
- Updated
openclaw-integration.mdxandopenclaw/SKILL.mdto reflect system prompt injection behavior - Fixed "prompt injection" → "context injection" terminology to avoid confusion with the OWASP security term