Skip to content

Commit cf36cb9

Browse files
committed
test(auto-reply): update group intro prompt expectations
1 parent 280e8d4 commit cf36cb9

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/auto-reply/reply.triggers.group-intro-prompts.cases.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ export function registerGroupIntroPromptCases(): void {
2424
'If no response is needed, reply with exactly "NO_REPLY" (and nothing else) so OpenClaw stays silent.';
2525
const groupSilentProseGuard =
2626
'Any prose describing silence is wrong; the whole final answer must be only "NO_REPLY".';
27+
const automaticGroupDeliveryGuidance = [
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+
const automaticChannelDeliveryGuidance = [
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+
];
2737
const cases: GroupIntroCase[] = [
2838
{
2939
name: "discord",
@@ -55,7 +65,8 @@ export function registerGroupIntroPromptCases(): void {
5565
Provider: "whatsapp",
5666
},
5767
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,
5970
groupParticipationNote,
6071
groupSilentNote,
6172
groupSilentProseGuard,
@@ -93,7 +104,7 @@ export function registerGroupIntroPromptCases(): void {
93104
},
94105
expected: [
95106
"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.",
107+
...automaticChannelDeliveryGuidance,
97108
groupParticipationNote,
98109
groupSilentNote,
99110
groupSilentProseGuard,

0 commit comments

Comments
 (0)