From 28b17181f6e5ad2aa45b2fea7555406fc8c3c615 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 7 Mar 2026 09:19:07 -0800 Subject: [PATCH] Agents: pass agent-scoped image roots --- src/agents/openclaw-tools.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/agents/openclaw-tools.ts b/src/agents/openclaw-tools.ts index 6dc694c6350..1116982ff2e 100644 --- a/src/agents/openclaw-tools.ts +++ b/src/agents/openclaw-tools.ts @@ -80,6 +80,12 @@ export function createOpenClawTools(options?: { ? createImageTool({ config: options?.config, agentDir: options.agentDir, + agentId: + options?.requesterAgentIdOverride ?? + resolveSessionAgentId({ + sessionKey: options?.agentSessionKey, + config: options?.config, + }), workspaceDir, sandbox: options?.sandboxRoot && options?.sandboxFsBridge @@ -113,6 +119,7 @@ export function createOpenClawTools(options?: { ? null : createMessageTool({ agentAccountId: options?.agentAccountId, + agentId: options?.requesterAgentIdOverride, agentSessionKey: options?.agentSessionKey, config: options?.config, currentChannelId: options?.currentChannelId,