fix(messaging): show a configured Telegram whose extension is not installed
deploy / gate (push) Failing after 8m12s
deploy / archied-image (push) Skipped
deploy / agent-image (push) Skipped
deploy / dist-zip (push) Skipped

This commit is contained in:
sam committed 2026-11-08 16:00:29 +11:00
1 parent b548cabcbf
commit 62ddbea0c1
2 files changed
+12 -1

No files matched your search

@@ -139,7 +139,17 @@ func openExtensionChannels(ctx context.Context, source extension.Source, secrets
})
}
if _, ok := telegramFileSetting(telegram, showToolCalls); ok && !built[telegramChannel] {
log.WarnContext(ctx, "chat.telegram is configured but the telegram channel package is not installed; install the telegram channel extension to enable the bot")
// Report it as a channel, so the dashboard shows why the configured
// bot is not running instead of showing nothing.
const needs = "The Telegram channel extension is not installed"
log.WarnContext(ctx, "telegram is configured but its channel extension is not installed")
instances = append(instances, &channelInstance{
name: telegramChannel,
needs: needs,
rebuild: func(ResolvedConfig) (channels.Channel, error) {
return nil, errors.New("telegram channel extension is not installed")
},
})
}
go func() {
<-ctx.Done()
+1
View File
@@ -161,6 +161,7 @@ function setModels(list: string[]) {
<Button v-if="!configured[channel.id] && !opened[channel.id]" variant="outline" size="sm" @click="opened[channel.id] = true">Set up</Button>
</div>
</template>
<Alert v-if="statusFor(channel.id)?.state !== 'running' && statusFor(channel.id)?.detail" variant="destructive"><AlertDescription>{{ statusFor(channel.id)!.detail }}</AlertDescription></Alert>
<FieldGroup v-if="form && shown(channel.id) && channel.id === 'telegram'" class="@container/field-group">
<form.Field v-slot="{ field }" name="telegram.token_ref">
<Field orientation="responsive">