Dax Raad 8 месяцев назад
Родитель
Сommit
05974ea109
2 измененных файлов с 8 добавлено и 1 удалено
  1. 7 0
      packages/opencode/src/session/index.ts
  2. 1 1
      packages/opencode/src/tool/todo.ts

+ 7 - 0
packages/opencode/src/session/index.ts

@@ -457,6 +457,13 @@ ${app.git ? await ListTool.execute({ path: app.path.cwd }, { sessionID: input.se
           next.metadata.error = input.error.toString()
         }
       },
+      async prepareStep(step) {
+        next.parts.push({
+          type: "step-start",
+        })
+        await updateMessage(next)
+        return step
+      },
       toolCallStreaming: false,
       abortSignal: abort.signal,
       maxRetries: 6,

+ 1 - 1
packages/opencode/src/tool/todo.ts

@@ -43,7 +43,7 @@ export const TodoWriteTool = Tool.define({
 export const TodoReadTool = Tool.define({
   id: "opencode.todoread",
   description: "Use this tool to read your todo list",
-  parameters: z.void({}),
+  parameters: z.object({}),
   async execute(params, opts) {
     const todos = state()[opts.sessionID] ?? []
     return {