Outbound: scope core send media roots by agent (#17268)

Merged with gates skipped by maintainer request.

Prepared head SHA: 663ac49b3a
This commit is contained in:
Gustavo Madeira Santana
2026-02-15 11:43:02 -05:00
committed by GitHub
parent b4f16001aa
commit 9adcccadb1
7 changed files with 118 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ export type OutboundSendContext = {
cfg: OpenClawConfig;
channel: ChannelId;
params: Record<string, unknown>;
/** Active agent id for per-agent outbound media root scoping. */
agentId?: string;
accountId?: string | null;
gateway?: OutboundGatewayContext;
toolContext?: ChannelThreadingToolContext;
@@ -93,6 +95,7 @@ export async function executeSendAction(params: {
cfg: params.ctx.cfg,
to: params.to,
content: params.message,
agentId: params.ctx.agentId,
mediaUrl: params.mediaUrl || undefined,
mediaUrls: params.mediaUrls,
channel: params.ctx.channel || undefined,