memory-lancedb-pro icon indicating copy to clipboard operation
memory-lancedb-pro copied to clipboard

Auto-recall功能在启用时出现3000ms超时警告(Gateway硬编码超时限制)

Open Lee-take opened this issue 8 months ago • 4 comments

Problem / Motivation

在使用memory-lancedb-pro插件时,一旦启用auto-recall功能,就会出现auto-recall timed out after 3000ms警告。经过排查,发现根本原因是OpenClaw Gateway对插件调用有3000ms的硬编码超时限制,而插件schema中没有相应的超时设置字段。

Proposed Solution

  1. 在插件schema中添加超时设置字段(如autoRecallTimeoutMs),允许用户自定义超时时间
  2. 或者,优化auto-recall的检索逻辑,减少处理时间
  3. 考虑在Gateway层面提供更灵活的超时配置选项

Alternatives Considered

  1. 关闭auto-recall功能:autoRecall: false
  2. 增加autoRecallMinLength:从30增加到50
  3. 手动使用memory_recall工具进行记忆检索

Area

None

Additional Context

环境信息:

  • OpenClaw版本:2026.3.22
  • memory-lancedb-pro版本:1.1.0-beta.10
  • 操作系统:Windows 11
  • 配置:autoRecall: true,使用Ollama mxbai-embed-large本地embedding模型

问题重现步骤:

  1. 在openclaw.json中设置plugins.entries.memory-lancedb-pro.config.autoRecall: true
  2. 重启Gateway服务
  3. 进行对话时,观察Gateway日志
  4. 会出现auto-recall timed out after 3000ms警告

影响: 虽然手动记忆检索可以正常工作,但auto-recall功能的缺失影响了用户体验和自动化程度。希望开发团队能考虑修复这个问题,让auto-recall功能能在合理的时间内完成。

感谢开发团队的辛勤工作!memory-lancedb-pro插件在其他方面表现非常出色。

Lee-take avatar Mar 26 '26 14:03 Lee-take

Good news — this has been fixed in commit 92dc9b3 (2026-03-24).

The 3000ms was a hardcoded default in the plugin itself (not the Gateway). It's now configurable via autoRecallTimeoutMs, and the default has been raised to 5000ms.

To customize it, update your openclaw.json:

{
  "plugins": {
    "entries": {
      "memory-lancedb-pro": {
        "config": {
          "autoRecallTimeoutMs": 8000
        }
      }
    }
  }
}

For local Ollama models which are slower than API providers, you may want to set this higher (e.g. 8000-10000ms).

Please upgrade to the latest version and let us know if the issue persists.

AliceLJY avatar Mar 27 '26 06:03 AliceLJY

Resolved — autoRecallTimeoutMs is now configurable (commit 92dc9b3). Closing.

AliceLJY avatar Mar 27 '26 07:03 AliceLJY

尊敬的开发团队:

感谢你们快速修复了auto-recall超时问题(commit 92dc9b3)。我们已收到邮件通知并尝试更新配置,但遇到了一个技术问题需要反馈。

问题描述:

按照邮件指导,我们在openclaw.json中添加了autoRecallTimeoutMs配置:

Copy { "plugins": { "entries": { "memory-lancedb-pro": { "config": { "autoRecallTimeoutMs": 8000 } } } } }

然而,Gateway启动时出现配置验证错误: Copy Invalid config at C:\Users\prosb.openclaw\openclaw.json: - plugins.entries.memory-lancedb-pro.config: invalid config: must NOT have additional properties

根本原因分析:

经过检查,我们发现:

✅ 代码已支持:commit 92dc9b3确实在index.ts中添加了autoRecallTimeoutMs的类型定义和读取逻辑

❌ schema缺失:openclaw.plugin.json的configSchema.properties中没有autoRecallTimeoutMs字段定义

导致冲突:OpenClaw Gateway的严格schema验证拒绝了未定义的配置项

版本信息:

memory-lancedb-pro版本:1.1.0-beta.10(最新,包含commit 92dc9b3)

OpenClaw版本:2026.3.24

操作系统:Windows 11

复现步骤:

更新插件到v1.1.0-beta.10

在openclaw.json中添加autoRecallTimeoutMs配置

重启Gateway → 配置验证失败

临时解决方案:

我们已回滚配置,目前使用默认的5秒超时(已从3秒提升)。对于本地Ollama用户,5秒可能足够,但配置灵活性受限。

建议修复:

在openclaw.plugin.json的configSchema.properties中添加autoRecallTimeoutMs字段定义:

影响范围:

所有使用v1.1.0-beta.10版本并希望自定义auto-recall超时的用户都会遇到此问题。

感谢与期待:

再次感谢你们的快速响应。这个功能对我们使用本地Ollama嵌入模型的用户非常重要。期待schema更新后能安全地配置更长的超时时间。

祝好, OpenClaw用户 - Lear & 小劳

     原始邮件

发件人:安闲静雅 @.> 发件时间:2026年3月27日 14:49 收件人:CortexReach/memory-lancedb-pro @.> 抄送:Lee-take @.>, Author @.> 主题:Re: [CortexReach/memory-lancedb-pro] Auto-recall功能在启用时出现3000ms超时警告(Gateway硬编码超时限制) (Issue #360)

AliceLJY left a comment (CortexReach/memory-lancedb-pro#360)

Good news — this has been fixed in commit 92dc9b3 (2026-03-24).

The 3000ms was a hardcoded default in the plugin itself (not the Gateway). It's now configurable via autoRecallTimeoutMs, and the default has been raised to 5000ms.

To customize it, update your openclaw.json: {  "plugins": {    "entries": {      "memory-lancedb-pro": {        "config": {          "autoRecallTimeoutMs": 8000        }      }    }  } }

For local Ollama models which are slower than API providers, you may want to set this higher (e.g. 8000-10000ms).

Please upgrade to the latest version and let us know if the issue persists.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

Lee-take avatar Mar 28 '26 01:03 Lee-take

Reopening — the fix was incomplete

The commit 92dc9b3 added autoRecallTimeoutMs to the interface and usage code, but it was never added to the parsePluginConfig return object, so the config value was never actually parsed and users still got:

invalid config: must NOT have additional properties

The issue was closed prematurely. PR #466 provides the missing one-line fix to parsePluginConfig:

autoRecallTimeoutMs: parsePositiveInt(cfg.autoRecallTimeoutMs) ?? 3000,

Fix: https://github.com/CortexReach/memory-lancedb-pro/pull/466

jlin53882 avatar Apr 02 '26 16:04 jlin53882