Problem Description
When using autoCapture with OpenClaw Feishu channel, the untrusted metadata blocks (Conversation info / Sender) are being captured and stored in the memory database, causing memory pollution.
Environment
- Plugin version: 1.1.0-beta.8
- OpenClaw channel: Feishu (飞书)
- Configuration: autoCapture: true, smartExtraction: true
Observed Behavior
Stored memory entries include content like:
Expected Behavior
The metadata blocks should be stripped before Smart Extraction and memory storage, similar to how they are handled in normalizeQuery() for retrieval (as implemented in PR #47).
Root Cause Analysis
The current implementation strips metadata in:
Suggested Fix
Apply the same metadata stripping logic used in normalizeQuery() to the auto-capture pipeline, specifically in:
- stripAutoCaptureInjectedPrefix() function
- Or in the smart extraction preprocessing step
Temporary Workaround
Disable autoCapture and use manual memory_store instead:
References
Thank you for considering this fix. Happy to provide more details or test any patches.
Problem Description
When using autoCapture with OpenClaw Feishu channel, the untrusted metadata blocks (Conversation info / Sender) are being captured and stored in the memory database, causing memory pollution.
Environment
Observed Behavior
Stored memory entries include content like:
Expected Behavior
The metadata blocks should be stripped before Smart Extraction and memory storage, similar to how they are handled in normalizeQuery() for retrieval (as implemented in PR #47).
Root Cause Analysis
The current implementation strips metadata in:
Suggested Fix
Apply the same metadata stripping logic used in normalizeQuery() to the auto-capture pipeline, specifically in:
Temporary Workaround
Disable autoCapture and use manual memory_store instead:
References
Thank you for considering this fix. Happy to provide more details or test any patches.