fix: thread accountId through subagent announce

Co-authored-by: Adam Holt <adam91holt@users.noreply.github.com>
This commit is contained in:
Peter Steinberger
2026-01-17 02:09:32 +00:00
parent 4ba6f6e8ee
commit d5332ae29a
9 changed files with 37 additions and 3 deletions

View File

@@ -48,6 +48,7 @@ function normalizeModelSelection(value: unknown): string | undefined {
export function createSessionsSpawnTool(opts?: {
agentSessionKey?: string;
agentChannel?: GatewayMessageChannel;
agentAccountId?: string;
sandboxed?: boolean;
}): AnyAgentTool {
return {
@@ -206,6 +207,7 @@ export function createSessionsSpawnTool(opts?: {
childSessionKey,
requesterSessionKey: requesterInternalKey,
requesterChannel: opts?.agentChannel,
requesterAccountId: opts?.agentAccountId,
requesterDisplayKey,
task,
cleanup,