fix: mutate prefixContext object instead of reassigning for closure correctness
This commit is contained in:
1 parent
7b04e6ac42
commit
113eea5047
8 files changed
+30
-53
No files matched your search
@@ -127,9 +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.
|
||||
logVerbose(
|
||||
`[prefix-debug] onModelSelected firing: provider=${provider} model=${model} thinkLevel=${params.followupRun.run.thinkLevel}`,
|
||||
);
|
||||
params.opts?.onModelSelected?.({
|
||||
provider,
|
||||
model,
|
||||
|
||||
Reference in new issue
Block a user