Pre-submission checklist | 提交前检查
Bug Description | 问题描述
The memory_search tool uses hardcoded owner="agent:main" when no explicit owner parameter is provided.
This breaks the documented multi-agent isolation: "检索时自动过滤为当前 Agent + public"
Expected: Auto-detect agentId from ctx.workspaceDir or hookCtx.agentId
Workaround: Extract agentId from workspaceDir path (workspace-dev → agent:dev)
How to Reproduce | 如何重现
- Set up multiple agents (workspace-dev, workspace-javis)
- Call memory_search without owner parameter
- Check logs: shows owner=agent:main instead of agent:dev
Environment | 环境信息
- OpenClaw: 2026.3.8
- MemOS plugin: 1.0.5
- OS: Linux Ubuntu
- Node: v24.14.0
Additional Context | 其他信息
No response
Willingness to Implement | 实现意愿
Pre-submission checklist | 提交前检查
Bug Description | 问题描述
The memory_search tool uses hardcoded owner="agent:main" when no explicit owner parameter is provided.
This breaks the documented multi-agent isolation: "检索时自动过滤为当前 Agent + public"
Expected: Auto-detect agentId from ctx.workspaceDir or hookCtx.agentId
Workaround: Extract agentId from workspaceDir path (workspace-dev → agent:dev)
How to Reproduce | 如何重现
Environment | 环境信息
Additional Context | 其他信息
No response
Willingness to Implement | 实现意愿