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

@@ -233,7 +233,6 @@ Markdown 檔案名稱即為模式名稱(例如,`review.md` 建立一個名
| `list` | 列出目錄內容 |
| `patch` | 對檔案套用補丁 |
| `todowrite` | 管理待辦事項清單 |
| `todoread` | 讀取待辦事項清單 |
| `webfetch` | 擷取網頁內容 |
---

View File

@@ -138,7 +138,6 @@ OpenCode 的權限以工具名稱為鍵,外加幾個安全防護項:
- `task` — 啟動子代理(比對子代理類型)
- `skill` — 載入技能(比對技能名稱)
- `lsp` — 執行 LSP 查詢(目前不支援細粒度設定)
- `todoread`、`todowrite` — 讀取/更新待辦事項清單
- `webfetch` — 擷取 URL比對 URL
- `websearch`、`codesearch` — 網頁/程式碼搜尋(比對查詢內容)
- `external_directory` — 當工具存取專案工作目錄之外的路徑時觸發

View File

@@ -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
擷取網頁內容。