fix(discord): keep agents quiet when others are addressed (#78615) · openclaw/openclaw@9c7c0ae
steipete
·
2026-05-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -32,6 +32,8 @@ describe("group runtime loading", () => {
|
32 | 32 | ); |
33 | 33 | expect(groupChatContext).toContain("Minimize empty lines and use normal chat conventions"); |
34 | 34 | 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"); |
35 | 37 | expect(groupChatContext).toContain("prefer delegating bounded side investigations early"); |
36 | 38 | expect(groupChatContext).toContain("Keep the critical path local"); |
37 | 39 | expect(groupChatContext).toContain('reply with exactly "NO_REPLY"'); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -245,6 +245,7 @@ export function buildGroupChatContext(params: {
|
245 | 245 | lines.push( |
246 | 246 | "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.", |
247 | 247 | ); |
| 248 | +lines.push("If addressed to someone else, stay silent unless invited or correcting key facts."); |
248 | 249 | if (normalizeOptionalLowercaseString(params.sessionCtx.Provider) === "discord") { |
249 | 250 | lines.push("Discord: wrap bare URLs like <https://example.com> to suppress embeds."); |
250 | 251 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。