Remove debug logging for responsePrefix template resolution

This commit is contained in:
Sebastian
2026-01-14 23:36:47 -05:00
parent e7167e35ed
commit 6ef3837e73
3 changed files with 0 additions and 20 deletions

View File

@@ -127,10 +127,6 @@ export async function runAgentTurnWithFallback(params: {
run: (provider, model) => {
// Notify that model selection is complete (including after fallback).
// This allows responsePrefix template interpolation with the actual model.
// eslint-disable-next-line no-console
console.log(
`[responsePrefix] onModelSelected callback exists: ${!!params.opts?.onModelSelected}, provider=${provider}, model=${model}`,
);
params.opts?.onModelSelected?.({
provider,
model,

View File

@@ -43,19 +43,9 @@ export function normalizeReplyPayload(
}
// Resolve template variables in responsePrefix if context is provided
if (opts.responsePrefix?.includes("{")) {
// eslint-disable-next-line no-console
console.log(
`[responsePrefix] normalizing: prefix="${opts.responsePrefix}", context=${JSON.stringify(opts.responsePrefixContext)}`,
);
}
const effectivePrefix = opts.responsePrefixContext
? resolveResponsePrefixTemplate(opts.responsePrefix, opts.responsePrefixContext)
: opts.responsePrefix;
if (opts.responsePrefix?.includes("{")) {
// eslint-disable-next-line no-console
console.log(`[responsePrefix] resolved to: "${effectivePrefix}"`);
}
if (
effectivePrefix &&