Agents: pass agent-scoped image roots

This commit is contained in:
Vincent Koc
2026-03-07 09:19:07 -08:00
parent a66b179b12
commit 28b17181f6

View File

@@ -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,