Skip to content

fix(openclaw): add auto-recall short query threshold#1894

Open
cnYui wants to merge 2 commits into
MemTensor:mainfrom
cnYui:codex/memos-auto-recall-min-query-length
Open

fix(openclaw): add auto-recall short query threshold#1894
cnYui wants to merge 2 commits into
MemTensor:mainfrom
cnYui:codex/memos-auto-recall-min-query-length

Conversation

@cnYui

@cnYui cnYui commented Jun 6, 2026

Copy link
Copy Markdown

Closes #1347

Summary

  • Add recall.autoRecallMinQueryLength for memos-local-openclaw auto-recall.
  • Default the threshold to 2 to preserve existing behavior.
  • Skip auto-recall search when the normalized prompt is shorter than the configured threshold.
  • Document setting the threshold to 10 for short acknowledgements.

Tests

  • npm test -- tests/auto-recall-min-query-length.test.ts tests/config.test.ts
  • npm run build

@cnYui cnYui force-pushed the codex/memos-auto-recall-min-query-length branch from ac15df4 to 290b1ca Compare June 6, 2026 10:10
@Memtensor-AI Memtensor-AI changed the base branch from main to dev-20260604-v2.0.19 June 10, 2026 15:42
…ex/memos-auto-recall-min-query-length

# Conflicts:
#	apps/memos-local-plugin/adapters/openclaw/index.ts
#	apps/memos-local-plugin/adapters/openclaw/runtime-lock.ts
#	apps/memos-local-plugin/tests/unit/adapters/openclaw-runtime-lock.test.ts
@cnYui

cnYui commented Jun 11, 2026

Copy link
Copy Markdown
Author

Synced this branch with dev-20260604-v2.0.19 and resolved the merge conflicts in the OpenClaw runtime lock files.

Verified locally:

  • npm test -- tests/auto-recall-min-query-length.test.ts tests/config.test.ts
  • npm run build
  • npm test -- tests/unit/adapters/openclaw-runtime-lock.test.ts

@Memtensor-AI Memtensor-AI changed the base branch from dev-20260604-v2.0.19 to dev-v2.0.22 July 1, 2026 13:15
@CarltonXiang CarltonXiang deleted the branch MemTensor:main July 3, 2026 07:25
@syzsunshine219 syzsunshine219 reopened this Jul 3, 2026
@syzsunshine219 syzsunshine219 changed the base branch from dev-v2.0.22 to main July 3, 2026 08:22
@Memtensor-AI Memtensor-AI added area:plugin OpenClaw & Hermes area:memory 记忆存储、检索、更新、召回逻辑 labels Jul 8, 2026
@Memtensor-AI Memtensor-AI requested a review from bittergreen July 8, 2026 11:44
@Memtensor-AI Memtensor-AI added area:memory 记忆存储、检索、更新、召回逻辑 and removed area:memory 记忆存储、检索、更新、召回逻辑 labels Jul 9, 2026
@Memtensor-AI Memtensor-AI removed the area:memory 记忆存储、检索、更新、召回逻辑 label Jul 9, 2026
@Memtensor-AI Memtensor-AI added area:api 云服务 / FastAPI / OpenAPI / MCP area:core MOS 编排层 / 框架底座 / 跨模块问题 and removed area:core MOS 编排层 / 框架底座 / 跨模块问题 area:api 云服务 / FastAPI / OpenAPI / MCP needs-audit labels Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:plugin OpenClaw & Hermes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

建议:增加自动召回的短查询过滤参数(min_query_length)

7 participants