You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: Adds a new recall.autoRecallMinQueryLength config knob (default 4) to @memtensor/memos-local-openclaw-plugin so that very short user prompts no longer trigger the before_prompt_build auto-recall pipeline. This addresses the "short-word recall pollution" issue (#1347) where one-word confirmations like "好的"/"可以"/"运行"/"继续"/"?" would fire vector + FTS search and inject 700-1500 chars of unrelated history into the agent context.
The fix replaces the previous hard-coded query.length < 2 skip in apps/memos-local-openclaw/index.ts with a comparison against the configured threshold. The default of 4 chars filters every reporter-listed example while keeping legitimate short queries usable; users wanting the reporter's suggested 10 can opt in via config, and setting 0 restores the pre-feature behaviour. The knob only affects automatic recall — explicit memory_search tool calls are unchanged.
Changes: src/types.ts adds the field to MemosLocalConfig.recall and a default in DEFAULTS; src/config.ts resolves it in resolveConfig; index.ts uses it in the auto-recall hook; README.md documents it. Three new vitest cases in tests/config.test.ts cover default / override / explicit-zero. All 5 new config tests pass; the 19 tests across config, plugin-openclaw-wiring, plugin-impl-access, and recall modules all pass. tsc --noEmit is clean. The 4 unrelated failing files in the full sweep (skill-auto-install, task-processor, update-install) were verified to fail identically on the base branch before any edits in this PR.
Activity
github-actions commentedon Apr 25, 2026
This issue has been automatically marked as stale due to inactivity.
MaiHHConnect commentedon Apr 26, 2026
Memtensor-AI commentedon Jun 30, 2026
🤖 AutoDev has picked up this issue and started working on it.
Task ID:
42bc646552bc9665Working branch:
feature/autodev-1347Target branch:
latest dev* branchWorkflow: opsp (analysis → coding → testing → PR)
I will post the PR link here once done. If I need more information, I will ask in the comments.
feat(memos-local-openclaw): add recall.autoRecallMinQueryLength config
Memtensor-AI commentedon Jun 30, 2026
✅ AutoDev task
42bc646552bc9665completed.Summary: Adds a new
recall.autoRecallMinQueryLengthconfig knob (default 4) to@memtensor/memos-local-openclaw-pluginso that very short user prompts no longer trigger thebefore_prompt_buildauto-recall pipeline. This addresses the "short-word recall pollution" issue (#1347) where one-word confirmations like "好的"/"可以"/"运行"/"继续"/"?" would fire vector + FTS search and inject 700-1500 chars of unrelated history into the agent context.The fix replaces the previous hard-coded
query.length < 2skip inapps/memos-local-openclaw/index.tswith a comparison against the configured threshold. The default of 4 chars filters every reporter-listed example while keeping legitimate short queries usable; users wanting the reporter's suggested10can opt in via config, and setting0restores the pre-feature behaviour. The knob only affects automatic recall — explicitmemory_searchtool calls are unchanged.Changes:
src/types.tsadds the field toMemosLocalConfig.recalland a default inDEFAULTS;src/config.tsresolves it inresolveConfig;index.tsuses it in the auto-recall hook;README.mddocuments it. Three new vitest cases intests/config.test.tscover default / override / explicit-zero. All 5 new config tests pass; the 19 tests acrossconfig,plugin-openclaw-wiring,plugin-impl-access, andrecallmodules all pass.tsc --noEmitis clean. The 4 unrelated failing files in the full sweep (skill-auto-install,task-processor,update-install) were verified to fail identically on the base branch before any edits in this PR.Base branch:
mainBranch:
feature/autodev-1347Commit:
21dedb3PR: #1976
Assigned to: @MatthewZhuang, @CarltonXiang, @syzsunshine219, @World-controller
Reviewers: @MatthewZhuang, @CarltonXiang, @syzsunshine219, @World-controller
Fix #1347: 建议:增加自动召回的短查询过滤参数(min_query_length) (#1976)