fix: use empty sessionKey to isolate learn lane, parse focus from normalized body

This commit is contained in:
lubolin0925 2026-03-08 14:22:11 +08:00
parent b1aff9fe8a
commit 641fc73434
2 changed files with 2 additions and 4 deletions

View File

@ -240,7 +240,7 @@ export async function handleCommands(params: HandleCommandsParams): Promise<Comm
const thinkLevel = params.resolvedThinkLevel ?? (await params.resolveDefaultThinkingLevel());
runLearnForSession({
sessionId: targetSessionEntry.sessionId,
sessionKey: targetSessionKey,
sessionKey: "", // Empty to avoid blocking session lane
messageChannel: params.command.channel,
groupId: targetSessionEntry.groupId,
groupChannel: targetSessionEntry.groupChannel,

View File

@ -153,9 +153,7 @@ export const handleLearnCommand = async (
}
const sessionId = params.sessionEntry.sessionId;
const customFocus = extractLearnFocus(
params.ctx.CommandBody ?? params.ctx.RawBody ?? params.ctx.Body,
);
const customFocus = extractLearnFocus(params.command.commandBodyNormalized);
if (!params.sessionEntry.sessionFile) {
return {