Skip to content

Commit 9c7c0ae

Browse files
authored
fix(discord): keep agents quiet when others are addressed (#78615)
* fix(discord): keep agents quiet when others are addressed * fix(groups): tighten addressed-elsewhere prompt
1 parent 197edaa commit 9c7c0ae

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/auto-reply/reply/groups.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ describe("group runtime loading", () => {
3232
);
3333
expect(groupChatContext).toContain("Minimize empty lines and use normal chat conventions");
3434
expect(groupChatContext).not.toContain("wrap bare URLs");
35+
expect(groupChatContext).toContain("If addressed to someone else");
36+
expect(groupChatContext).toContain("stay silent unless invited or correcting key facts");
3537
expect(groupChatContext).toContain("prefer delegating bounded side investigations early");
3638
expect(groupChatContext).toContain("Keep the critical path local");
3739
expect(groupChatContext).toContain('reply with exactly "NO_REPLY"');

src/auto-reply/reply/groups.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ export function buildGroupChatContext(params: {
245245
lines.push(
246246
"Write like a human. Avoid Markdown tables. Minimize empty lines and use normal chat conventions, not document-style spacing. Don't type literal \\n sequences; use real line breaks sparingly.",
247247
);
248+
lines.push("If addressed to someone else, stay silent unless invited or correcting key facts.");
248249
if (normalizeOptionalLowercaseString(params.sessionCtx.Provider) === "discord") {
249250
lines.push("Discord: wrap bare URLs like <https://example.com> to suppress embeds.");
250251
}

0 commit comments

Comments
 (0)