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

This commit is contained in:
Aiden Cline
2026-03-25 16:21:42 +00:00
committed by GitHub
parent cafc2b204b
commit 77fc88c8ad
87 changed files with 5 additions and 528 deletions
@@ -233,7 +233,6 @@ Markdown 文件名即为模式名称(例如,`review.md` 创建一个名为 `
| `list` | 列出目录内容 |
| `patch` | 对文件应用补丁 |
| `todowrite` | 管理待办事项列表 |
| `todoread` | 读取待办事项列表 |
| `webfetch` | 获取网页内容 |
---
@@ -138,7 +138,6 @@ OpenCode 的权限以工具名称为键,外加几个安全防护项:
- `task` — 启动子代理(匹配子代理类型)
- `skill` — 加载技能(匹配技能名称)
- `lsp` — 运行 LSP 查询(当前不支持细粒度配置)
- `todoread`、`todowrite` — 读取/更新待办事项列表
- `webfetch` — 获取 URL(匹配 URL)
- `websearch`、`codesearch` — 网页/代码搜索(匹配查询内容)
- `external_directory` — 当工具访问项目工作目录之外的路径时触发
@@ -248,27 +248,6 @@ description: 管理 LLM 可以使用的工具。
---
### todoread
读取现有的待办事项列表。
```json title="opencode.json" {4}
{
"$schema": "https://opencode.ai/config.json",
"permission": {
"todoread": "allow"
}
}
```
读取当前待办事项列表的状态。LLM 使用此工具来跟踪哪些任务待处理、哪些已完成。
:::note
该工具默认对子代理禁用,但您可以手动启用。[了解更多](/docs/agents/#permissions)
:::
---
### webfetch
获取网页内容。