692
const subagent = this._subagentChats.get(sessionKey, action.toolCallId);
693
if (subagent) {
695
>
const runningContent = this._getRunningToolCallContent(parentState, turnId, action.toolCallId);
696
>
const subagentEntry = runningContent.find(c => hasKey(c, { type: true }) && c.type === ToolResultContentType.Subagent);
697
>
if (subagentEntry) {
698
>
const mergedContent = [...(action.result.content ?? []), subagentEntry];
699
>
const merged: ChatToolCallCompleteAction = { ...action, result: { ...action.result, content: mergedContent } };
700
>
action = merged;
701
>
}
702
>
703
>
}
704
}
705