Skip to content

fix(openclaw): restore memory tools and session provenance - #799

Merged
zc277584121 merged 2 commits into
zilliztech:mainfrom
zc277584121:codex/fix-openclaw-tool-contracts
Oct 19, 2026
Merged

zc277584121 merged 2 commits into
zilliztech:mainfrom
zc277584121:codex/fix-openclaw-tool-contracts

Conversation

@zc277584121

@zc277584121 zc277584121 commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Newer OpenClaw hosts reject MemSearch’s memory tools because their ownership is missing from the plugin manifest. Capture also reads session identity from the wrong hook argument and can mix workspaces across asynchronous invocations.

Declare the three tool contracts and legacy CLI metadata, preserve each invocation’s workspace, and use public host APIs for SQLite transcript references and session visibility. Use an explicit sessionKey field so host credential redaction preserves the reference returned to the model. Retain bounded JSONL support for older hosts.

Validation: 27 plugin tests; 34 actual SDK, visibility and model-output redaction checks; loader compatibility on OpenClaw 2026.3.11, 2026.3.22 and 2026.10.5; build/package checks. A real OpenClaw 2026.10.5 TUI run with API-key inference and configured OpenAI API summaries passed automatic capture → isolated Milvus Lite indexing → fresh-session memory_search, memory_get and memory_transcript, with the first transcript call returning the original conversation.

Native subprocess summaries can contend with the embedded TUI’s host-state lease; that route is not validated as passing. The documented API-summary configuration is the verified route. No package version change or release is included.

References #746.

Signed-off-by: Cheney Zhang <chen.zhang@zilliz.com>
Signed-off-by: Cheney Zhang <chen.zhang@zilliz.com>
@zc277584121
zc277584121 marked this pull request as ready for review October 19, 2026 08:06
@zc277584121
zc277584121 merged commit 2e64124 into zilliztech:main Oct 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant