Merge branch 'main' into dev/cc/new-schema

This commit is contained in:
Celia Chen
2026-05-08 19:18:58 -07:00
committed by GitHub
235 changed files with 6289 additions and 3278 deletions
+4 -5
View File
@@ -219,11 +219,10 @@ impl ToolsConfig {
model_shell_type
};
let apply_patch_tool_type = match model_info.apply_patch_tool_type {
Some(ApplyPatchToolType::Freeform) => Some(ApplyPatchToolType::Freeform),
Some(ApplyPatchToolType::Function) => Some(ApplyPatchToolType::Function),
None => include_apply_patch_tool.then_some(ApplyPatchToolType::Function),
};
let apply_patch_tool_type = model_info
.apply_patch_tool_type
.clone()
.or_else(|| include_apply_patch_tool.then_some(ApplyPatchToolType::Freeform));
let agent_jobs_worker_tools = include_agent_jobs
&& matches!(
+2 -2
View File
@@ -156,7 +156,7 @@ fn shell_zsh_fork_prefers_shell_command_over_unified_exec() {
}
#[test]
fn fallback_apply_patch_models_use_function_tool_by_default() {
fn fallback_apply_patch_models_use_freeform_tool_by_default() {
let model_info = model_info();
let features = Features::with_defaults();
@@ -174,7 +174,7 @@ fn fallback_apply_patch_models_use_function_tool_by_default() {
assert_eq!(
tools_config.apply_patch_tool_type,
Some(ApplyPatchToolType::Function)
Some(ApplyPatchToolType::Freeform)
);
}