mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 20:51:36 +00:00
feat(feishu): add replyInThread configuration for message replies (openclaw#27325) thanks @kcinzgg
Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: kcinzgg <13964709+kcinzgg@users.noreply.github.com> Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
@@ -111,6 +111,16 @@ const GroupSessionScopeSchema = z
|
||||
*/
|
||||
const TopicSessionModeSchema = z.enum(["disabled", "enabled"]).optional();
|
||||
|
||||
/**
|
||||
* Reply-in-thread mode for group chats.
|
||||
* - "disabled" (default): Bot replies are normal inline replies
|
||||
* - "enabled": Bot replies create or continue a Feishu topic thread
|
||||
*
|
||||
* When enabled, the Feishu reply API is called with `reply_in_thread: true`,
|
||||
* causing the reply to appear as a topic (话题) under the original message.
|
||||
*/
|
||||
const ReplyInThreadSchema = z.enum(["disabled", "enabled"]).optional();
|
||||
|
||||
export const FeishuGroupSchema = z
|
||||
.object({
|
||||
requireMention: z.boolean().optional(),
|
||||
@@ -121,6 +131,7 @@ export const FeishuGroupSchema = z
|
||||
systemPrompt: z.string().optional(),
|
||||
groupSessionScope: GroupSessionScopeSchema,
|
||||
topicSessionMode: TopicSessionModeSchema,
|
||||
replyInThread: ReplyInThreadSchema,
|
||||
})
|
||||
.strict();
|
||||
|
||||
@@ -147,6 +158,7 @@ const FeishuSharedConfigShape = {
|
||||
renderMode: RenderModeSchema,
|
||||
streaming: StreamingModeSchema,
|
||||
tools: FeishuToolsConfigSchema,
|
||||
replyInThread: ReplyInThreadSchema,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user