chore: remove dead code for todoread tool (#19128)

This commit is contained in:
Aiden Cline
2026-03-25 11:21:42 -05:00
committed by GitHub
parent cafc2b204b
commit 77fc88c8ad
87 changed files with 5 additions and 528 deletions

View File

@@ -80,11 +80,6 @@ export const TaskTool = Tool.define("task", async (ctx) => {
pattern: "*",
action: "deny",
},
{
permission: "todoread",
pattern: "*",
action: "deny",
},
...(hasTaskPermission
? []
: [
@@ -137,7 +132,6 @@ export const TaskTool = Tool.define("task", async (ctx) => {
agent: agent.name,
tools: {
todowrite: false,
todoread: false,
...(hasTaskPermission ? {} : { task: false }),
...Object.fromEntries((config.experimental?.primary_tools ?? []).map((t) => [t, false])),
},