From ec8dd666ecfd00849e280e750dbe6cdf9a0c08cf Mon Sep 17 00:00:00 2001 From: "@mrubens" <2600+mrubens@users.noreply.github.com> Date: Sun, 6 Sep 2026 13:13:44 +0000 Subject: [PATCH] fix: correct Telegram automation continuation copy --- ...AutomationsSettings.render.client.test.tsx | 43 +++++++++++++++++++ .../automations/CustomAutomationsSection.tsx | 4 +- 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/apps/web/src/components/settings/automations/AutomationsSettings.render.client.test.tsx b/apps/web/src/components/settings/automations/AutomationsSettings.render.client.test.tsx index 833de0c41..150c11d96 100644 --- a/apps/web/src/components/settings/automations/AutomationsSettings.render.client.test.tsx +++ b/apps/web/src/components/settings/automations/AutomationsSettings.render.client.test.tsx @@ -1513,6 +1513,49 @@ describe('AutomationsSettings', () => { ).toBeInTheDocument(); }); + it('explains that Telegram replies continue the Fast session', async () => { + state.settingsQuery.data.capabilities.telegramConnected = true; + state.customAutomations = [ + { + id: 'automation-telegram-fast', + name: 'Telegram daily brief', + prompt: 'Summarize my priorities.', + enabled: true, + scheduleMode: 'daily', + cronExpression: null, + model: null, + executionMode: 'fast', + environmentId: '__fast__', + target: { + provider: 'telegram', + targetKind: 'telegram_user', + externalRef: 'user-1', + }, + lastRunAt: null, + lastSucceededAt: null, + lastFailedAt: null, + lastError: null, + lastLaunchedTaskId: null, + createdByName: 'Ada', + createdAt: new Date('2026-01-01T00:00:00Z'), + updatedAt: new Date('2026-01-01T00:00:00Z'), + }, + ]; + + render(); + fireEvent.click( + await screen.findByRole('button', { + name: 'Configure Telegram daily brief', + }), + ); + + expect( + screen.getByText( + 'Each run is a Session that reports findings and failures here, and replies continue it.', + ), + ).toBeInTheDocument(); + }); + it('only offers connected providers as custom automation destinations', async () => { state.settingsQuery.data.capabilities.slackConnected = false; state.settingsQuery.data.capabilities.discordConnected = true; diff --git a/apps/web/src/components/settings/automations/CustomAutomationsSection.tsx b/apps/web/src/components/settings/automations/CustomAutomationsSection.tsx index 32beed083..66588a708 100644 --- a/apps/web/src/components/settings/automations/CustomAutomationsSection.tsx +++ b/apps/web/src/components/settings/automations/CustomAutomationsSection.tsx @@ -839,9 +839,7 @@ export function CustomAutomationsSection() {

{form.targetProvider === 'none' ? 'Each run is a Session in the web app and does not post to chat.' - : form.targetProvider === 'telegram' - ? 'Each run is a Session that reports findings and failures here. Continue it from the web app; chat replies on this provider do not resume it yet.' - : 'Each run is a Session that reports findings and failures here, and replies continue it.'} + : 'Each run is a Session that reports findings and failures here, and replies continue it.'}