Skip to content

Bug: TesseraMemo tool tesseramemo_query crashes embedded runner (Cannot read properties of undefined reading filter) #27007

@vicenteliu

Description

@vicenteliu

Summary

Calling the tesseramemo_query tool causes the embedded runner to end with an error:

Cannot read properties of undefined (reading 'filter')

This makes the TesseraMemo memory plugin unusable for querying (and can break workflows that invoke the tool).

Environment

  • OpenClaw: 2026.2.25 (macOS)
  • Memory slot: plugin tesseramemo
  • Tool: tesseramemo_query

Steps to Reproduce

  1. Ensure TesseraMemo memory plugin is enabled (plugins.slots.memory = tesseramemo).
  2. Invoke the tool from an agent turn:
    • tool: tesseramemo_query
    • args: { "query": "sanity check", "k": 3 }
  3. Observe the run ends in error.

Observed behavior

Gateway logs show tool start/end, then embedded runner error:

2026-02-26T01:20:06.144Z ... embedded run tool start ... tool=tesseramemo_query
2026-02-26T01:20:06.196Z ... embedded run tool end   ... tool=tesseramemo_query
2026-02-26T01:20:06.211Z ... embedded run agent end ... isError=true error=Cannot read properties of undefined (reading 'filter')

Expected behavior

tesseramemo_query should return a stable tool result (even if empty) and never crash the runner.

Notes / Suspicions

  • Looks like an internal .filter() call is executed on an undefined value after tool completion.
  • This may be in the tool-result sanitization / persistence / hook pipeline rather than inside the plugin itself.

Happy to provide more logs or run a debug build if you point to where to instrument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleMarked as stale due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions