mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 09:21:23 +00:00
Telegram: fix /think command to show current level when no arg
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user