feat(qa-lab): add telegram mentioned-message scenario

This commit is contained in:
Ayaan Zaidi
2026-04-11 08:48:11 +05:30
parent a0b5c7b0c4
commit b0b0fb308d

View File

@@ -37,6 +37,7 @@ type TelegramQaScenarioId =
| "telegram-tools-compact-command"
| "telegram-whoami-command"
| "telegram-context-command"
| "telegram-mentioned-message-reply"
| "telegram-mention-gating";
type TelegramQaScenarioRun = {
@@ -224,6 +225,20 @@ const TELEGRAM_QA_SCENARIOS: TelegramQaScenarioDefinition[] = [
expectedTextIncludes: ["/context list", "Inline shortcut"],
}),
},
{
id: "telegram-mentioned-message-reply",
title: "Telegram mentioned message gets a reply",
timeoutMs: 45_000,
buildRun: (sutUsername) => {
const token = `TELEGRAM_QA_REPLY_${randomUUID().slice(0, 8).toUpperCase()}`;
return {
expectReply: true,
input: `@${sutUsername} reply with only this exact marker: ${token}`,
expectedTextIncludes: [token],
matchText: token,
};
},
},
{
id: "telegram-mention-gating",
standardId: "mention-gating",