*/
export function mapSubagentSystemMessage(
chat: URI,
registry: SubagentRegistry,
): AgentSignal[] {
const sub = (message as { subtype?: string }).subtype;
if (sub === 'task_started') {
const toolUseId = (message as { tool_use_id?: string }).tool_use_id;
const spawn = toolUseId ? registry.getSpawn(toolUseId) : undefined;