feat(openclaw-plugin 2.0): from memory plugin to context engine#662
Merged
qin-ctx merged 2 commits intovolcengine:mainfrom Mar 18, 2026
Merged
feat(openclaw-plugin 2.0): from memory plugin to context engine#662qin-ctx merged 2 commits intovolcengine:mainfrom
qin-ctx merged 2 commits intovolcengine:mainfrom
Conversation
6c737e8 to
eb65211
Compare
qin-ctx
reviewed
Mar 16, 2026
f2e8959 to
771ccb2
Compare
…ntext engine 1. Rename the OpenClaw plugin from memory-openviking to openclaw-context-plugin and switch its kind from memory to context-engine. 2. Keep auto-recall and ingest-reply-assist on before_prompt_build to preserve the existing prompt injection behavior. 3. Move the canonical auto-capture flow from the old agent_end-style lifecycle to ContextEngine afterTurn. 4. Delegate compact handling to the legacy compact engine when it is available, so existing compaction behavior can still be reused. 5. Preserve the OpenViking tools and local process management while updating setup helpers, installers, docs, and OpenClaw config paths to plugins.slots.contextEngine. Co-authored-by: GPT-5.4 <noreply@openai.com>
be152c9 to
fa0e1d9
Compare
e29df3d to
9bbe63a
Compare
Collaborator
qin-ptr
reviewed
Mar 18, 2026
Contributor
qin-ptr
left a comment
There was a problem hiding this comment.
Follow-up review: 之前提出的硬编码路径问题已修复 ✅
发现了一些命名一致性问题 (non-blocking suggestions):
文档中的旧插件名称引用
examples/openclaw-plugin/INSTALL-ZH.md (行 211, 215)
- 文档中仍使用旧插件名称 "memory-openviking",应更新为 "openviking"
- 第 211 行描述和第 215 行 grep 命令中都需要更新
建议改为:
grep -i inject /tmp/openclaw/openclaw-2026-03-13.log | awk -F'"' '{for(i=1;i<=NF;i++) if($i ~ /^[0-9]{2}:[0-9]{2}:[0-9]{2}/) {time=$i; break}} /injecting [0-9]+ memories/ {print time, "openviking:", gensub(/.*(injecting [0-9]+ memories).*/, "\\1", "1")}'代码中的旧插件名称引用
examples/openclaw-plugin/process-manager.ts:175
- 错误消息:
memory-openviking: port ${port} is occupied... - 建议改为:
openviking: port ${port} is occupied...
examples/openclaw-plugin/index.ts:97
- 错误消息:
memory-openviking unavailable: ${reason} - 建议改为:
openviking unavailable: ${reason}
examples/openclaw-plugin/config.ts:116
- 配置描述: "memory-openviking config"
- 建议改为: "openviking config"
这些都是小的命名一致性问题,不影响功能,建议修复但不阻塞合并。
🤖 I am a bot owned by @qin-ctx.
9bbe63a to
bedbd6e
Compare
Contributor
Author
已修改 |
…king - rename the runtime plugin id, package name, install destination, and OpenClaw config keys from openclaw-context-plugin to context-openviking - keep the source directory at examples/openclaw-context-plugin unchanged while updating docs, installers, and setup helpers to use the new runtime name - remove unused sys imports from the demo scripts so ruff check stays green
bedbd6e to
f094ff2
Compare
qin-ctx
approved these changes
Mar 18, 2026
qin-ctx
added a commit
that referenced
this pull request
Mar 19, 2026
PR #662 renamed the plugin directory and rewrote index.ts from a stale branch base, silently dropping two merged bug fixes: - #681: share pending clientPromise across dual-context registrations to prevent before_agent_start hook from hanging forever - #688: wrap auto-recall search in withTimeout(5s) to prevent indefinite agent hang when OpenViking search API is slow or unresponsive
19 tasks
chenjw
pushed a commit
that referenced
this pull request
Mar 19, 2026
…rge (#779) PR #662 renamed the plugin directory and rewrote index.ts from a stale branch base, silently dropping two merged bug fixes: - #681: share pending clientPromise across dual-context registrations to prevent before_agent_start hook from hanging forever - #688: wrap auto-recall search in withTimeout(5s) to prevent indefinite agent hang when OpenViking search API is slow or unresponsive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ntext engine
Description
Related Issue
Type of Change
Changes Made
Testing
Checklist
Screenshots (if applicable)
Additional Notes