fix: use empty sessionKey to isolate learn lane, parse focus from normalized body
This commit is contained in:
parent
b1aff9fe8a
commit
641fc73434
@ -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,
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user