Telegram: fix /think command to show current level when no arg

This commit is contained in:
Lutro
2026-01-07 12:21:20 +01:00
committed by Peter Steinberger
parent 0d34f330b8
commit 36b443f4f3
4 changed files with 78 additions and 3 deletions

View File

@@ -469,6 +469,9 @@ export async function getReplyFromConfig(
isGroup,
})
) {
const currentThinkLevel =
(sessionEntry?.thinkingLevel as ThinkLevel | undefined) ??
(agentCfg?.thinkingDefault as ThinkLevel | undefined);
const directiveReply = await handleDirectiveOnly({
cfg,
directives,
@@ -488,6 +491,7 @@ export async function getReplyFromConfig(
model,
initialModelLabel,
formatModelSwitchEvent,
currentThinkLevel,
});
typing.cleanup();
return directiveReply;