mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 23:51:38 +00:00
fix(feishu): add reactionNotifications mode gating (openclaw#29388) thanks @Takhoffman
Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: Takhoffman <781889+Takhoffman@users.noreply.github.com> Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
@@ -110,6 +110,7 @@ const GroupSessionScopeSchema = z
|
||||
* - "enabled": Messages in different topics get separate sessions
|
||||
*/
|
||||
const TopicSessionModeSchema = z.enum(["disabled", "enabled"]).optional();
|
||||
const ReactionNotificationModeSchema = z.enum(["off", "own", "all"]).optional();
|
||||
|
||||
/**
|
||||
* Reply-in-thread mode for group chats.
|
||||
@@ -159,6 +160,7 @@ const FeishuSharedConfigShape = {
|
||||
streaming: StreamingModeSchema,
|
||||
tools: FeishuToolsConfigSchema,
|
||||
replyInThread: ReplyInThreadSchema,
|
||||
reactionNotifications: ReactionNotificationModeSchema,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -195,6 +197,7 @@ export const FeishuConfigSchema = z
|
||||
webhookPath: z.string().optional().default("/feishu/events"),
|
||||
...FeishuSharedConfigShape,
|
||||
dmPolicy: DmPolicySchema.optional().default("pairing"),
|
||||
reactionNotifications: ReactionNotificationModeSchema.optional().default("own"),
|
||||
groupPolicy: GroupPolicySchema.optional().default("allowlist"),
|
||||
requireMention: z.boolean().optional().default(true),
|
||||
groupSessionScope: GroupSessionScopeSchema,
|
||||
|
||||
Reference in New Issue
Block a user