Skip to content

feat(recall): cap injected memory context#71

Open
YOMXXX wants to merge 2 commits into
Tencent:mainfrom
YOMXXX:feat/recall-budget
Open

feat(recall): cap injected memory context#71
YOMXXX wants to merge 2 commits into
Tencent:mainfrom
YOMXXX:feat/recall-budget

Conversation

@YOMXXX
Copy link
Copy Markdown
Contributor

@YOMXXX YOMXXX commented May 21, 2026

Summary

  • Add recall.maxCharsPerMemory and recall.maxTotalRecallChars with defaults of 800 and 3000.
  • Apply the budget after L1 search and before <relevant-memories> injection, preserving score order while truncating oversized entries and dropping overflow.
  • Document the new guards in README, README_CN, and openclaw.plugin.json.
  • Keep the npm tarball under the existing 512KB Size Guard by shipping built runtime files instead of raw src/ and pointing OpenClaw to dist/index.mjs.

Test Plan

  • npm test
  • npm run build
  • npm pack --dry-run --json
  • git diff --check

Notes

YOMXXX added 2 commits May 21, 2026 22:35
Signed-off-by: 李冠辰 <liguanchen@xiaomi.com>
Signed-off-by: 李冠辰 <liguanchen@xiaomi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant