Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/feishu/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ export class FeishuClient {
});
}
// 诊断:记录消息获取和过滤的详情
logger.debug(
logger.info(
{
containerId,
containerType,
Expand Down
8 changes: 4 additions & 4 deletions src/feishu/event-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1676,12 +1676,12 @@ async function executeDirectTask(

let effectivePrompt = promptWithTime;
const afterMsgId = activeConversationId ? _historyDedup.get(sessionKey) : undefined;
logger.debug(
logger.info(
{ sessionKey, afterMsgId, hasConversationId: !!activeConversationId, currentMessageId: messageId, rootId },
'History dedup state before buildDirectTaskHistory',
);
const history = await buildDirectTaskHistory(chatId, eventThreadId, messageId, afterMsgId, selfBotOpenIds);
logger.debug(
logger.info(
{ sessionKey, hasHistoryText: !!history.text, historyLen: history.text?.length, newestMsgId: history.newestMsgId },
'buildDirectTaskHistory result',
);
Expand Down Expand Up @@ -1854,13 +1854,13 @@ async function buildDirectTaskHistory(
messages = messages.slice(idx + 1);
}
// afterMsgId 不在列表中 → 可能消息已过期滚动,注入全部
logger.debug(
logger.info(
{ chatId, afterMsgId, foundIdx: messages.length !== beforeDedupFilter ? 'found' : 'not_found', beforeDedup: beforeDedupFilter, afterDedup: messages.length },
'History afterMsgId dedup applied',
);
}

logger.debug(
logger.info(
{
chatId,
threadId,
Expand Down
Loading