fix: clean up onboarding + channel selection types

This commit is contained in:
Peter Steinberger
2026-01-15 05:12:29 +00:00
parent 9c02ea9098
commit 57c66fe813
7 changed files with 56 additions and 37 deletions

View File

@@ -111,8 +111,9 @@ export const agentHandlers: GatewayRequestHandlers = {
}
const rawChannel = typeof request.channel === "string" ? request.channel.trim() : "";
if (rawChannel) {
const isKnownGatewayChannel = (value: string): boolean => isGatewayMessageChannel(value);
const normalized = normalizeMessageChannel(rawChannel);
if (normalized && normalized !== "last" && !isGatewayMessageChannel(normalized)) {
if (normalized && normalized !== "last" && !isKnownGatewayChannel(normalized)) {
respond(
false,
undefined,