mirror of
https://github.com/openai/codex.git
synced 2026-11-13 22:47:20 +00:00
chore(features) rm Feature::ApplyPatchFreeform (#22711)
## Summary Removes the feature since this is effectively on by default in all cases where we should use it, or can be configured via models.json. ## Testing - [x] unit tests pass
This commit is contained in:
1 parent
7c11c14efc
commit
51b0e94105
28 files changed
+71
-172
No files matched your search
@@ -175,7 +175,6 @@ impl ToolsConfig {
|
||||
session_source,
|
||||
..
|
||||
} = params;
|
||||
let include_apply_patch_tool = features.enabled(Feature::ApplyPatchFreeform);
|
||||
let include_code_mode = features.enabled(Feature::CodeMode);
|
||||
let include_code_mode_only = include_code_mode && features.enabled(Feature::CodeModeOnly);
|
||||
let include_goal_tools = features.enabled(Feature::Goals);
|
||||
@@ -225,10 +224,7 @@ impl ToolsConfig {
|
||||
model_shell_type
|
||||
};
|
||||
|
||||
let apply_patch_tool_type = model_info
|
||||
.apply_patch_tool_type
|
||||
.clone()
|
||||
.or_else(|| include_apply_patch_tool.then_some(ApplyPatchToolType::Freeform));
|
||||
let apply_patch_tool_type = model_info.apply_patch_tool_type.clone();
|
||||
|
||||
let agent_jobs_worker_tools = include_agent_jobs
|
||||
&& matches!(
|
||||
|
||||
Reference in new issue
Block a user