From 31d87fa133d0d967d7cb3c24ac5137fde4ae7cb0 Mon Sep 17 00:00:00 2001 From: ie2718 Date: Tue, 27 Jan 2026 11:03:14 +0800 Subject: [PATCH] fix(feishu): remove webhook config from onboarding, default to pairing policy --- extensions/feishu/src/onboarding.ts | 64 ++--------------------------- 1 file changed, 4 insertions(+), 60 deletions(-) diff --git a/extensions/feishu/src/onboarding.ts b/extensions/feishu/src/onboarding.ts index 1cdbd5cdc..0ec7dc3fd 100644 --- a/extensions/feishu/src/onboarding.ts +++ b/extensions/feishu/src/onboarding.ts @@ -44,7 +44,7 @@ async function noteFeishuCredentialsHelp(prompter: WizardPrompter): Promise (value?.trim() ? undefined : "Required for webhook verification"), - }), - ).trim(); - const webhookPath = String( - await prompter.text({ - message: "Webhook path on gateway", - initialValue: "/feishu/callback", - }), - ).trim(); - - if (feishuAccountId === DEFAULT_ACCOUNT_ID) { - next = { - ...next, - channels: { - ...next.channels, - feishu: { - ...next.channels?.feishu, - ...(encryptKey ? { encryptKey } : {}), - ...(verificationToken ? { verificationToken } : {}), - ...(webhookPath ? { webhookPath } : {}), - }, - }, - } as ClawdbotConfig; - } else { - next = { - ...next, - channels: { - ...next.channels, - feishu: { - ...next.channels?.feishu, - accounts: { - ...(next.channels?.feishu?.accounts ?? {}), - [feishuAccountId]: { - ...(next.channels?.feishu?.accounts?.[feishuAccountId] ?? {}), - ...(encryptKey ? { encryptKey } : {}), - ...(verificationToken ? { verificationToken } : {}), - ...(webhookPath ? { webhookPath } : {}), - }, - }, - }, - }, - } as ClawdbotConfig; - } - } + // WebSocket mode - no webhook configuration needed if (forceAllowFrom) { next = await promptFeishuAllowFrom({