299
return;
300
}
302
>
// and the SDK omits the synthetic spawning prompt, so the transcript
303
>
// legitimately opens with an assistant message. Synthesize an
304
>
// empty-prompt turn to hold the subagent's reply instead of dropping
305
>
// it (which would lose the entire subagent transcript on replay).
306
>
this._active = {
307
>
id: msg.uuid,
308
>
userText: '',
309
>
startedAt: msg.timestamp,
310
>
responseParts: [],
311
>
pendingToolUseIds: new Set(),
312
>
toolCallParts: new Map(),
313
>
};
314
>
}
315
let textPartCounter = 0;
316
let reasoningPartCounter = 0;