From 8750744068516912af06d1c1f1a8c48a1ebcc596 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 7 Aug 2025 21:47:24 -0400 Subject: [PATCH] renable todo tool --- .../opencode/src/session/prompt/beast.txt | 12 ---------- packages/opencode/src/tool/registry.ts | 22 ++----------------- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/packages/opencode/src/session/prompt/beast.txt b/packages/opencode/src/session/prompt/beast.txt index 3f0a9f84..21db5dcb 100644 --- a/packages/opencode/src/session/prompt/beast.txt +++ b/packages/opencode/src/session/prompt/beast.txt @@ -93,18 +93,6 @@ Carefully read the issue and think hard about a plan to solve it before coding. - To test hypotheses, you can also add test statements or functions - Revisit your assumptions if unexpected behavior occurs. -# How to create a Todo List -Use the following format to create a todo list: -```markdown -- [ ] Step 1: Description of the first step -- [ ] Step 2: Description of the second step -- [ ] Step 3: Description of the third step -``` - -Do not ever use HTML tags or any other formatting for the todo list, as it will not be rendered correctly. Always use the markdown format shown above. Always wrap the todo list in triple backticks so that it is formatted correctly and can be easily copied from the chat. - -Always show the completed todo list to the user as the last item in your message, so that they can see that you have addressed all of the steps. - # Communication Guidelines Always communicate clearly and concisely in a casual, friendly yet professional tone. diff --git a/packages/opencode/src/tool/registry.ts b/packages/opencode/src/tool/registry.ts index 1ff89f72..5b805ac6 100644 --- a/packages/opencode/src/tool/registry.ts +++ b/packages/opencode/src/tool/registry.ts @@ -66,9 +66,10 @@ export namespace ToolRegistry { return result } - export async function enabled(_providerID: string, modelID: string): Promise> { + export async function enabled(_providerID: string, _modelID: string): Promise> { const cfg = await Config.get() const result: Record = {} + result["patch"] = false if (cfg.permission?.edit === "deny") { result["edit"] = false @@ -79,25 +80,6 @@ export namespace ToolRegistry { result["bash"] = false } - if (modelID.toLowerCase().includes("claude")) { - result["patch"] = false - return result - } - - if ( - modelID.toLowerCase().includes("qwen") || - modelID.includes("gpt-") || - modelID.includes("o1") || - modelID.includes("o3") || - modelID.includes("codex") - ) { - result["patch"] = false - result["todowrite"] = false - result["todoread"] = false - - return result - } - return result }