debug: add responsePrefix template logging

This commit is contained in:
Sebastian
2026-01-14 23:23:21 -05:00
parent 113eea5047
commit 56b3b44342
3 changed files with 16 additions and 0 deletions

View File

@@ -163,10 +163,14 @@ export const dispatchTelegramMessage = async ({
disableBlockStreaming,
onModelSelected: (ctx) => {
// Mutate the object directly instead of reassigning to ensure the closure sees updates
logVerbose(
`[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)}`);
},
},
});