You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/auto-reply/reply.triggers.group-intro-prompts.cases.ts
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,16 @@ export function registerGroupIntroPromptCases(): void {
24
24
'If no response is needed, reply with exactly "NO_REPLY" (and nothing else) so OpenClaw stays silent.';
25
25
constgroupSilentProseGuard=
26
26
'Any prose describing silence is wrong; the whole final answer must be only "NO_REPLY".';
27
+
constautomaticGroupDeliveryGuidance=[
28
+
"Your text replies are automatically sent to this group chat unless the current-turn context says final replies stay private.",
29
+
"For ordinary text, do not use the message tool to send to this same destination unless the current-turn context asks for visible output via message(action=send).",
30
+
"Use message(action=send) only when you need to send files, images, or other attachments to this same group/topic.",
31
+
];
32
+
constautomaticChannelDeliveryGuidance=[
33
+
"Your text replies are automatically sent to this channel unless the current-turn context says final replies stay private.",
34
+
"For ordinary text, do not use the message tool to send to this same destination unless the current-turn context asks for visible output via message(action=send).",
35
+
"Use message(action=send) only when you need to send files, images, or other attachments to this same channel/thread.",
36
+
];
27
37
constcases: GroupIntroCase[]=[
28
38
{
29
39
name: "discord",
@@ -55,7 +65,8 @@ export function registerGroupIntroPromptCases(): void {
55
65
Provider: "whatsapp",
56
66
},
57
67
expected: [
58
-
"You are in a WhatsApp group chat. Your text replies are automatically sent to this group chat. For ordinary text, do not use the message tool to send to this same destination; just reply normally. Use message(action=send) only when you need to send files, images, or other attachments to this same group/topic.",
68
+
"You are in a WhatsApp group chat.",
69
+
...automaticGroupDeliveryGuidance,
59
70
groupParticipationNote,
60
71
groupSilentNote,
61
72
groupSilentProseGuard,
@@ -93,7 +104,7 @@ export function registerGroupIntroPromptCases(): void {
93
104
},
94
105
expected: [
95
106
"You are in a Mattermost channel.",
96
-
"Your text replies are automatically sent to this channel. For ordinary text, do not use the message tool to send to this same destination; just reply normally. Use message(action=send) only when you need to send files, images, or other attachments to this same channel/thread.",
0 commit comments