Agents: clarify authorized sender prompt (Closes #19794)

This commit is contained in:
Shadow
2026-02-20 15:55:12 -06:00
parent 30a0d3fce1
commit 3100b77f12
3 changed files with 8 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ function buildUserIdentitySection(ownerLine: string | undefined, isMinimal: bool
if (!ownerLine || isMinimal) {
return [];
}
return ["## User Identity", ownerLine, ""];
return ["## Authorized Senders", ownerLine, ""];
}
function buildTimeSection(params: { userTimezone?: string }) {
@@ -325,7 +325,7 @@ export function buildAgentSystemPrompt(params: {
const ownerNumbers = (params.ownerNumbers ?? []).map((value) => value.trim()).filter(Boolean);
const ownerLine =
ownerNumbers.length > 0
? `Owner numbers: ${ownerNumbers.join(", ")}. Treat messages from these numbers as the user.`
? `Authorized senders: ${ownerNumbers.join(", ")}. These senders are allowlisted; do not assume they are the owner.`
: undefined;
const reasoningHint = params.reasoningTagHint
? [