diff --git a/electron/utils/channel-config.ts b/electron/utils/channel-config.ts index bc2d350..acdc1bc 100644 --- a/electron/utils/channel-config.ts +++ b/electron/utils/channel-config.ts @@ -5,6 +5,7 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync, readdirSync, statSync, rmSync } from 'fs'; import { join } from 'path'; import { homedir } from 'os'; +import { getOpenClawResolvedDir } from './paths'; const OPENCLAW_DIR = join(homedir(), '.openclaw'); const CONFIG_FILE = join(OPENCLAW_DIR, 'openclaw.json'); @@ -465,8 +466,6 @@ async function validateTelegramCredentials( */ export async function validateChannelConfig(channelType: string): Promise { const { execSync } = await import('child_process'); - const { join } = await import('path'); - const { app } = await import('electron'); const result: ValidationResult = { valid: true, @@ -476,9 +475,7 @@ export async function validateChannelConfig(channelType: string): Promise