fix(core): restore v1 fork-context config guard

This commit is contained in:
Friel
2026-04-07 22:25:15 +00:00
parent 2bfd6fa89b
commit b2496d0995
@@ -77,7 +77,7 @@ impl ToolHandler for Handler {
apply_role_to_config(&mut config, role_name)
.await
.map_err(FunctionCallError::RespondToModel)?;
if fork_context {
if args.fork_context {
restore_forked_spawn_agent_model_config(&mut config, turn.as_ref());
}
apply_spawn_agent_runtime_overrides(&mut config, turn.as_ref())?;