debug: use console.log instead of logVerbose for always-visible logging

This commit is contained in:
Sebastian
2026-01-14 23:29:17 -05:00
parent 56b3b44342
commit e7167e35ed
3 changed files with 11 additions and 7 deletions

View File

@@ -163,14 +163,16 @@ export const dispatchTelegramMessage = async ({
disableBlockStreaming,
onModelSelected: (ctx) => {
// Mutate the object directly instead of reassigning to ensure the closure sees updates
logVerbose(
// eslint-disable-next-line no-console
console.log(
`[responsePrefix] telegram onModelSelected fired: provider=${ctx.provider}, model=${ctx.model}, thinkLevel=${ctx.thinkLevel}`,
);
prefixContext.provider = ctx.provider;
prefixContext.model = extractShortModelName(ctx.model);
prefixContext.modelFull = `${ctx.provider}/${ctx.model}`;
prefixContext.thinkingLevel = ctx.thinkLevel ?? "off";
logVerbose(`[responsePrefix] telegram prefixContext updated: ${JSON.stringify(prefixContext)}`);
// eslint-disable-next-line no-console
console.log(`[responsePrefix] telegram prefixContext updated: ${JSON.stringify(prefixContext)}`);
},
},
});