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

@@ -127,6 +127,9 @@ 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.
logVerbose(
`[responsePrefix] onModelSelected callback exists: ${!!params.opts?.onModelSelected}, provider=${provider}, model=${model}`,
);
params.opts?.onModelSelected?.({
provider,
model,