[codex] Enable apply_patch freeform by default (#21687)

## Summary
- enable `apply_patch_freeform` by default in the feature registry

## Why
- make the freeform `apply_patch` tool available by default when model
metadata does not explicitly opt into another mode

## Validation
- `just fmt`
- did not run tests

---------

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed IbrahimandCodex authored and GitHub committed 2026-05-08 13:15:00 +00:00
1 parent 317213fd33
commit cce059467a
6 files changed
+46 -8

No files matched your search

+1 -1
View File
@@ -222,7 +222,7 @@ impl ToolsConfig {
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::Freeform),
None => include_apply_patch_tool.then_some(ApplyPatchToolType::Function),
};
let agent_jobs_worker_tools = include_agent_jobs