From 3876597621b518d8a84a25d00984dfcfd6279373 Mon Sep 17 00:00:00 2001 From: Hunter Miller Date: Thu, 19 Feb 2026 11:53:13 -0600 Subject: [PATCH] fix(tlon): restore buildTlonAccountFields for allowPrivateNetwork The inlined payload building was missing allowPrivateNetwork field, which would prevent the setting from being persisted to config. --- extensions/tlon/src/channel.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/extensions/tlon/src/channel.ts b/extensions/tlon/src/channel.ts index cecf1dd536b..e62983b4504 100644 --- a/extensions/tlon/src/channel.ts +++ b/extensions/tlon/src/channel.ts @@ -10,6 +10,7 @@ import { DEFAULT_ACCOUNT_ID, normalizeAccountId, } from "openclaw/plugin-sdk"; +import { buildTlonAccountFields } from "./account-fields.js"; import { tlonChannelConfigSchema } from "./config-schema.js"; import { monitorTlonProvider } from "./monitor/index.js"; import { tlonOnboardingAdapter } from "./onboarding.js"; @@ -80,6 +81,7 @@ type TlonSetupInput = ChannelSetupInput & { ship?: string; url?: string; code?: string; + allowPrivateNetwork?: boolean; groupChannels?: string[]; dmAllowlist?: string[]; autoDiscoverChannels?: boolean; @@ -100,16 +102,7 @@ function applyTlonSetupConfig(params: { }); const base = namedConfig.channels?.tlon ?? {}; - const payload = { - ...(input.ship ? { ship: input.ship } : {}), - ...(input.url ? { url: input.url } : {}), - ...(input.code ? { code: input.code } : {}), - ...(input.groupChannels ? { groupChannels: input.groupChannels } : {}), - ...(input.dmAllowlist ? { dmAllowlist: input.dmAllowlist } : {}), - ...(typeof input.autoDiscoverChannels === "boolean" - ? { autoDiscoverChannels: input.autoDiscoverChannels } - : {}), - }; + const payload = buildTlonAccountFields(input); if (useDefault) { return {