fix: avoid blocking OpenClaw plugin registration#2044
Conversation
|
Automated Test Results: QUEUED Conflict with
I will post the final pass/fail result when the run completes. |
|
Automated Test Results: PASSED Cloud test-engine rerun against
Manual code review is still required before merge. |
## Description Please include a summary of the change, the problem it solves, the implementation approach, and relevant context. List any dependencies required for this change. Related Issue (Required): Fixes #issue_number ## Type of change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] 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) - [ ] Documentation update ## How Has This Been Tested? Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration - [ ] Unit Test - [ ] Test Script Or Test Steps (please provide) - [ ] Pipeline Automated API Test (please provide) ## Checklist - [ ] I have performed a self-review of my own code | 我已自行检查了自己的代码 - [ ] I have commented my code in hard-to-understand areas | 我已在难以理解的地方对代码进行了注释 - [ ] I have added tests that prove my fix is effective or that my feature works | 我已添加测试以证明我的修复有效或功能正常 - [ ] I have created related documentation issue/PR in [MemOS-Docs](https://github.com/MemTensor/MemOS-Docs) (if applicable) | 我已在 [MemOS-Docs](https://github.com/MemTensor/MemOS-Docs) 中创建了相关的文档 issue/PR(如果适用) - [ ] I have linked the issue to this PR (if applicable) | 我已将 issue 链接到此 PR(如果适用) - [ ] I have mentioned the person who will review this PR | 我已提及将审查此 PR 的人 ## Reviewer Checklist - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] Made sure Checks passed - [ ] Tests have been provided
Translated an untranslated JSON `description` field in `docs/cn/open_source/modules/dream.md` from English to Chinese.
|
Hi @Memtensor-AI / @CarltonXiang — friendly ping on this draft. Quick observation: this PR still has base branch Could a maintainer please change the base branch from Thanks! |
|
Hi @syzsunshine219 — looks like you've merged 35 of the last 50 PRs on this repo. Friendly ping on this one. This draft (and the other 21 OPEN PRs I have here) is small, single-commit, has cloud test-engine When you have a moment, would you mind one of:
Both fix and feature PRs in this batch are independent — each can be reviewed/merged on its own. Happy to rebase / split / drop any that don't fit the direction. Thanks! |
b41dd88 to
d871455
Compare
🤖 Open Code ReviewTarget: PR #2044 🔍 OpenCodeReview found 2 issue(s) in this PR. 1.
|
…oval OCR review on MemTensor#2044 flagged that after removing detectPluginDir(moduleDir), the local 'pluginDir' variable is still referenced on lines 270 and 273 (path.join(pluginDir, 'package.json') and new Telemetry(..., pluginDir)), which would cause a ReferenceError at runtime. Alias pluginDir = moduleDir at the same scope so the existing references keep working without re-introducing the removed helper.
✅ Automated Test Results: PASSEDAll tests passed (9/9 executed). memos_local_openclaw/unit: 9/9. Duration: 3s Branch: |
…oval OCR review on MemTensor#2044 flagged that after removing detectPluginDir(moduleDir), the local 'pluginDir' variable is still referenced on lines 270 and 273 (path.join(pluginDir, 'package.json') and new Telemetry(..., pluginDir)), which would cause a ReferenceError at runtime. Alias pluginDir = moduleDir at the same scope so the existing references keep working without re-introducing the removed helper.
Description
Related Issue (Required): Fixes #1778
Removes the synchronous
better-sqlite3auto-rebuild path from OpenClaw plugin registration.The plugin already has
ensureSqliteBinding(ctx.log)as the central native binding preparation step. The removed registration-time fallback could runnpm rebuild better-sqlite3with a 120 second timeout before the service lifecycle was registered, which can make the plugin appear to fail loading during OpenClaw startup. Keeping binding preparation in one path avoids blocking registration and preserves the existing prebuild/rebuild handling.A regression test guards against reintroducing a registration-time
spawnSync/npm rebuildpath.Type of change
How Has This Been Tested?
Commands run:
Result:
startup registration static check passed.Also attempted:
npm testis blocked becausevitestis not installed.npm run buildis blocked becausetscis not installed.make formatis blocked becausepoetryis not installed.Checklist