summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-07 21:47:24 -0400
committerDax Raad <[email protected]>2025-08-07 21:47:37 -0400
commit8750744068516912af06d1c1f1a8c48a1ebcc596 (patch)
treea5afab6c967e42d485e26c409cf1aa43358d7631
parent3e74107e368f236fd9dc05624d9667ff6bdc6431 (diff)
downloadopencode-8750744068516912af06d1c1f1a8c48a1ebcc596.tar.gz
opencode-8750744068516912af06d1c1f1a8c48a1ebcc596.zip
renable todo tool
-rw-r--r--packages/opencode/src/session/prompt/beast.txt12
-rw-r--r--packages/opencode/src/tool/registry.ts22
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 3f0a9f84c..21db5dcb5 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 1ff89f727..5b805ac69 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<Record<string, boolean>> {
+ export async function enabled(_providerID: string, _modelID: string): Promise<Record<string, boolean>> {
const cfg = await Config.get()
const result: Record<string, boolean> = {}
+ 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
}