openclaw - 💡(How to fix) Fix memory-lancedb autoCapture: MEMORY_TRIGGERS lacks CJK/i18n support [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#75680Fetched 2026-05-02 05:31:52
View on GitHub
Comments
1
Participants
2
Timeline
1
Reactions
2
Timeline (top)
commented ×1

Code Example

const MEMORY_TRIGGERS = [
  /zapamatuj si|pamatuj|remember/i,
  /preferuji|radši|nechci|prefer/i,
  /rozhodli jsme|budeme používat/i,
  /\+\d{10,}/,
  /[\w.-]+@[\w.-]+\.\w+/,
  /můj\s+\w+\s+je|je\s+můj/i,
  /my\s+\w+\s+is|is\s+my/i,
  /i (like|prefer|hate|love|want|need)/i,
  /always|never|important/i
];
RAW_BUFFERClick to expand / collapse

Problem

The autoCapture feature in memory-lancedb plugin uses a hardcoded MEMORY_TRIGGERS regex list that only matches English and Czech patterns:

const MEMORY_TRIGGERS = [
  /zapamatuj si|pamatuj|remember/i,
  /preferuji|radši|nechci|prefer/i,
  /rozhodli jsme|budeme používat/i,
  /\+\d{10,}/,
  /[\w.-]+@[\w.-]+\.\w+/,
  /můj\s+\w+\s+je|je\s+můj/i,
  /my\s+\w+\s+is|is\s+my/i,
  /i (like|prefer|hate|love|want|need)/i,
  /always|never|important/i
];

For Chinese-speaking users, common memory-worthy phrases like "记住这个", "我喜欢", "以后都用这个", "重要" are never matched. As a result, autoCapture: true is effectively non-functional for any non-English/Czech conversation.

Expected Behavior

MEMORY_TRIGGERS should either:

  1. Include common CJK trigger phrases (Chinese, Japanese, Korean)
  2. Support user-configurable custom trigger patterns via plugin config (e.g. customTriggers: ["记住", "重要", "喜欢"])
  3. Use a language-agnostic approach (e.g. LLM-based intent detection for memory-worthy content)

Option 2 would be the most flexible and backward-compatible.

Environment

  • OpenClaw version: latest (2026-05-01)
  • Plugin: memory-lancedb (bundled)
  • Config: autoCapture: true, autoRecall: true
  • Language: Chinese (zh)

Impact

All non-English users with autoCapture enabled get zero automatic memory captures. The feature silently does nothing.

extent analysis

TL;DR

To fix the autoCapture feature for non-English users, add support for user-configurable custom trigger patterns via plugin config.

Guidance

  • Identify common trigger phrases in Chinese, such as "记住这个", "我喜欢", "以后都用这个", and "重要", to include in the custom trigger patterns.
  • Modify the memory-lancedb plugin config to support a customTriggers option, allowing users to specify their own trigger patterns.
  • Consider using a language-agnostic approach, such as LLM-based intent detection, for future improvements.
  • Test the updated plugin with various languages and trigger phrases to ensure compatibility and effectiveness.

Example

const customTriggers = pluginConfig.customTriggers || [];
const MEMORY_TRIGGERS = [
  // existing triggers...
].concat(customTriggers.map(pattern => new RegExp(pattern, 'i')));

Notes

The current implementation only supports English and Czech patterns, and adding support for other languages may require significant changes to the plugin architecture.

Recommendation

Apply workaround by adding support for user-configurable custom trigger patterns via plugin config, as this is the most flexible and backward-compatible solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix memory-lancedb autoCapture: MEMORY_TRIGGERS lacks CJK/i18n support [1 comments, 2 participants]