diff --git a/src/channels/config-presence.ts b/src/channels/config-presence.ts index 5435e97dc8e..087ce410857 100644 --- a/src/channels/config-presence.ts +++ b/src/channels/config-presence.ts @@ -6,6 +6,7 @@ import { } from "../channels/plugins/persisted-auth-state.js"; import type { OpenClawConfig } from "../config/config.js"; import { resolveStateDir } from "../config/paths.js"; +import { hasNonEmptyString } from "../infra/outbound/channel-target.js"; import { isRecord } from "../utils.js"; import { listBundledChannelPluginIds } from "./plugins/bundled-ids.js"; @@ -15,10 +16,6 @@ type ChannelPresenceOptions = { includePersistedAuthState?: boolean; }; -function hasNonEmptyString(value: unknown): boolean { - return typeof value === "string" && value.trim().length > 0; -} - export function hasMeaningfulChannelConfig(value: unknown): boolean { if (!isRecord(value)) { return false;