瀏覽代碼

disable todo tools by default in agent

Dax Raad 1 年之前
父節點
當前提交
d6b3bb0807
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      packages/opencode/src/agent/agent.ts

+ 4 - 1
packages/opencode/src/agent/agent.ts

@@ -44,7 +44,10 @@ export namespace Agent {
         item = result[key] = {
           name: key,
           description: "",
-          tools: {},
+          tools: {
+            todowrite: false,
+            todoread: false,
+          },
         }
       const model = value.model ?? cfg.model
       if (model) item.model = Provider.parseModel(model)