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
{{ message }}
Repository navigation
Commit 9119efe
Browse filesBrowse the repository at this point in the historyBrowse files
fix(plugin): harden local plugin runtime and embeddings (#2266)
## Description
This PR consolidates the tested local-plugin fixes from
`fix-20260820-local-plugin`:
- preserves the OpenClaw stale/recycled PID lock fix from #2099;
- makes packed OpenClaw and Hermes installations compatible with npm 11
when development peer dependencies are omitted;
- replaces the character-based head truncation proposed in #2123 with
provider-level `batchSize`, token-based `maxInputTokens`, bounded
four-chunk sampling and vector pooling, adaptive batch splitting for
400/413/422 responses, and per-input failure isolation across capture,
import, and embedding rebuild paths;
- defaults new installations to `maxInputTokens: 1024`, while preserving
`0` for existing configurations created before this setting;
- removes the separate rebuild “items per request” control and exposes
only provider batch size and the per-input token limit.
This supersedes #2123.
Related Issue (Required): Fixes#2121
Related: #2099
## Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Refactor (does not change functionality, e.g. code style
improvements, linting)
- [x] Documentation update
## How Has This Been Tested?
- [x] Unit Test
- `pnpm test`: 176 test files passed; 1,466 tests passed and 2 skipped.
- Targeted config, embedding, install, runtime-lock, and pipeline suite:
258 tests passed and 1 skipped.
- [x] Test Script Or Test Steps
- `pnpm lint`
- `pnpm build:package`
- macOS: installed and behavior-tested with OpenClaw and Hermes.
- Windows: installed and behavior-tested with OpenClaw, Hermes, and
DeepSeek Harness.
- [ ] Pipeline Automated API Test (not applicable)
`make format` was also attempted, but Poetry is not installed in the
local environment (`poetry: No such file or directory`). The plugin's
own lint, full tests, and production build all pass.
## Checklist
- [x] I have performed a self-review of my own code | 我已自行检查了自己的代码
- [x] I have commented my code in hard-to-understand areas |
我已在难以理解的地方对代码进行了注释
- [x] I have added tests that prove my fix is effective or that my
feature works | 我已添加测试以证明我的修复有效或功能正常
- [x] I have created related documentation issue/PR in
[MemOS-Docs](https://github.com/MemTensor/MemOS-Docs) (if applicable) |
Not applicable; the in-repository configuration templates and embedding
documentation were updated.
- [x] I have linked the issue to this PR (if applicable) | 我已将 issue
链接到此 PR(如果适用)
- [x] I have mentioned the person who will review this PR | 我已提及将审查此 PR
的人
@Memtensor-AI@syzsunshine219 please review.
## Reviewer Checklist
- [ ] closes#2121 (Replace xxxx with the GitHub issue number)
- [ ] Made sure Checks passed
- [ ] Tests have been provided
0 commit comments