fix: repair Feishu reset hook typing and stabilize secret resolver timeout

This commit is contained in:
Peter Steinberger
2026-03-03 05:06:02 +00:00
parent a9ec75fe81
commit 2d67c9b2a0
3 changed files with 56 additions and 42 deletions

View File

@@ -450,7 +450,11 @@ function formatSubMessageContent(content: string, contentType: string): string {
}
}
function checkBotMentioned(event: FeishuMessageEvent, botOpenId?: string, botName?: string): boolean {
function checkBotMentioned(
event: FeishuMessageEvent,
botOpenId?: string,
botName?: string,
): boolean {
if (!botOpenId) return false;
// Check for @all (@_all in Feishu) — treat as mentioning every bot
const rawContent = event.message.content ?? "";
@@ -886,7 +890,7 @@ export async function handleFeishuMessage(params: {
return;
}
let ctx = parseFeishuMessageEvent(event, botOpenId, botName ?? account.config?.botName);
let ctx = parseFeishuMessageEvent(event, botOpenId, botName);
const isGroup = ctx.chatType === "group";
const isDirect = !isGroup;
const senderUserId = event.sender.sender_id.user_id?.trim() || undefined;