fix: TodoWriteTool标记为readOnly - 内存操作无需权限确认

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
liuzh
2026-04-02 01:13:53 +08:00
co-authored by Copilot
parent 86a47282cf
commit 2e8e1eb819
@@ -25,6 +25,11 @@ public class TodoWriteTool implements Tool {
return "TodoWrite";
}
@Override
public boolean isReadOnly() {
return true; // 仅操作内存中的 todo 列表,无文件系统副作用
}
@Override
public String description() {
return """