Skip to content

[Bug] corpus=all returns only wiki results, ignores memory corpus #77337

@Zsmboom

Description

@Zsmboom

Bug Description

Version: OpenClaw 2026.5.3-1 (2eae30e)
OS: macOS Darwin 25.1.0 / node v24.1.0

Both memory_search corpus=all and wiki_search corpus=all return only wiki corpus results, completely ignoring memory corpus. However, wiki_search corpus=memory works correctly.

Steps to Reproduce

Run the following in the main agent:

memory_search(query="Roblox lucky block SEO analysis", corpus="all", maxResults=5)
// Returns: 5 wiki results, 0 memory results ❌

wiki_search(query="Roblox lucky block SEO analysis", corpus="all", maxResults=5)
// Returns: 5 wiki results, 0 memory results ❌

wiki_search(query="Roblox lucky block SEO analysis", corpus="memory", maxResults=5)
// Returns: 5 memory results ✅

memory_search(query="Roblox lucky block SEO analysis", corpus="memory", maxResults=5)
// Returns: 5 memory results ✅

Environment

  • OpenClaw: 2026.5.3-1 (2eae30e)
  • Wiki vault mode: bridge (431 exported artifacts)
  • Memory status (main): 158/158 files indexed, 1305 chunks
  • Bridge is enabled and healthy

Root Cause (初步判断)

  • wiki_search corpus=memory works → the bridge channel to memory is functional
  • corpus=all in both tools returns 0 memory results → the shared search backend is not properly merging the two corpora
  • Possible cause: corpus=all in shared backend mode does not correctly route memory corpus through the unified search pipeline, or wiki results over-rank memory results

Workaround

Call corpus=memory and corpus=wiki separately and merge results manually.

Expected Behavior

corpus=all should return results from both memory and wiki corpora, merged and ranked together.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions