Skip to content

memory_search 工具硬编码 15s timeout 不够 qmd query 跑完,建议可配置 #91947

Description

@guojiongming

问题

memory_search 工具内置的 timeout 似乎硬编码为 15 秒,而 QMD backend
qmd query(hybrid search with auto expansion + reranking)实际
需要 50-60 秒。

复现

环境(qmd status 输出):

  • 830 files indexed / 4840 embedded
  • Local models: embeddinggemma-300M, qwen3-reranker-0.6b,
    qmd-query-expansion-1.7B
  • searchMode: "query" 启用

实测 qmd query 流程:

$ qmd query "..."
Expanding query... (0ms)
Embedding 1 query... (691ms)
Reranking 21 chunks... (46.7s)

memory_search 工具调用同样的流程,15s 必 timeout

error: "memory_search timed out after 15s"
warning: "Memory search is unavailable due to an embedding/provider error"

已有尝试

  • memory.qmd.limits.timeoutMs 已设为 60000(默认 4000ms 已改)
  • 重启 gateway
  • 无效——memory_search 工具层 timeout 仍是 15s

建议

memory_search 工具的 timeout 改为可配置(或在工具层复用
memory.qmd.limits.timeoutMs),避免 15s 硬编码跟 qmd query 50-60s
实测耗时不匹配。

可能位置:OpenClaw 工具层(不是 QMD 后端)。

环境

  • OpenClaw main agent
  • QMD backend, searchMode: "query"
  • macOS
  • 本地 GGUF 模型(embeddinggemma-300M, qwen3-reranker-0.6b,
    qmd-query-expansion-1.7B)

进一步阅读

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions