41
startsTurn: true,
42
};
44
return {
45
messageText: localize('agentHost.copilot.systemNotification.agentIdle', "Background agent {0} is complete", kind.agentId),
46
startsTurn: true,
47
};
49
return {
50
messageText: localize('agentHost.copilot.systemNotification.newInboxMessage', "New inbox message from {0}", kind.senderName),
51
startsTurn: false,
52
};
54
return {
55
messageText: localize('agentHost.copilot.systemNotification.instructionDiscovered', "Instruction discovered: {0}", kind.description ?? kind.sourcePath),
56
startsTurn: false,
57
};
59
softAssertNever(kind);
60
return undefined;
62
>
}
63
65
>
const trimmed = content.trim();
66
>
const match = /^<system_notification>\s*([\s\S]*?)\s*<\/system_notification>$/.exec(trimmed);
67
>
return (match?.[1] ?? trimmed).trim();
68
>
}