Skip to content

Commit a8a986a

Browse files
authored
fix(qa): preserve Telegram reply defaults in live canary (#123662)
Make Telegram live QA inherit the production reply default instead of forcing threaded replies. Keep the portable one-visible-reply canary invariant while removing Telegram-specific policy. Co-authored-by: Ayaan Zaidi <[email protected]>
1 parent eab9cf5 commit a8a986a

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎extensions/qa-lab/src/live-transports/telegram/telegram-api.runtime.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ describe("Telegram QA API boundary", () => {
104104
sut: {
105105
botToken: "placeholder",
106106
dmPolicy: "disabled",
107-
replyToMode: "first",
108107
groups: {
109108
"-100123": {
110109
groupPolicy: "allowlist",
@@ -115,6 +114,7 @@ describe("Telegram QA API boundary", () => {
115114
},
116115
},
117116
});
117+
expect(config.channels?.telegram?.accounts?.sut?.replyToMode).toBeUndefined();
118118
});
119119

120120
it("disables mention gating only inside the exact leased QA group", () => {

‎extensions/qa-lab/src/live-transports/telegram/telegram-api.runtime.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ export function buildTelegramQaConfig(
330330
enabled: true,
331331
botToken: params.sutToken,
332332
dmPolicy: "disabled",
333-
replyToMode: "first",
334333
groups: {
335334
[params.groupId]: {
336335
groupPolicy: "allowlist",

‎qa/scenarios/channels/channel-canary.yaml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,4 @@ flow:
6363
expr: matchingOutbound.length === 1
6464
message:
6565
expr: "`expected one canary reply, saw ${matchingOutbound.length}; transcript=${formatTransportTranscript(state, { conversationId: config.conversationId })}`"
66-
- assert:
67-
expr: "transport.id !== 'telegram' || Boolean(outbound.replyToId)"
68-
message: Telegram canary reply was not threaded to the driver message
6966
detailsExpr: outbound.text

0 commit comments

Comments
 (0)