Hide legacy plan field from todo_write tool spec

This commit is contained in:
Charles Cunningham
2026-01-29 11:09:16 -08:00
parent 7c96c5a1e2
commit 437d37a823
+1 -4
View File
@@ -41,15 +41,12 @@ pub static TODO_WRITE_TOOL: LazyLock<ToolSpec> = LazyLock::new(|| {
"explanation".to_string(),
JsonSchema::String { description: None },
);
properties.insert("todo".to_string(), todo_items_schema.clone());
// NOTE: The "plan" field name is a deprecated legacy alias, unrelated to Plan mode.
properties.insert("plan".to_string(), todo_items_schema);
properties.insert("todo".to_string(), todo_items_schema);
ToolSpec::Function(ResponsesApiTool {
name: "todo_write".to_string(),
description: r#"Updates the task list.
Provide an optional explanation and a list of todo items in `todo`, each with a step and status.
The legacy `plan` field is still accepted.
At most one step can be in_progress at a time.
"#
.to_string(),