fix(feishu): remove allowFrom prompt, use pairing mode by default

This commit is contained in:
ie2718 2026-01-27 11:09:34 +08:00
parent 31d87fa133
commit 3e4c397451

View File

@ -199,6 +199,7 @@ export const feishuOnboardingAdapter: ChannelOnboardingAdapter = {
feishu: { feishu: {
...next.channels?.feishu, ...next.channels?.feishu,
enabled: true, enabled: true,
dmPolicy: "pairing",
}, },
}, },
} as ClawdbotConfig; } as ClawdbotConfig;
@ -293,14 +294,7 @@ export const feishuOnboardingAdapter: ChannelOnboardingAdapter = {
} }
// WebSocket mode - no webhook configuration needed // WebSocket mode - no webhook configuration needed
// Pairing mode by default - no allowFrom needed
if (forceAllowFrom) {
next = await promptFeishuAllowFrom({
cfg: next,
prompter,
accountId: feishuAccountId,
});
}
return { cfg: next, accountId: feishuAccountId }; return { cfg: next, accountId: feishuAccountId };
}, },