This commit is contained in:
Dax Raad
2025-06-04 18:03:04 -04:00
parent 6cfce1e4da
commit 05974ea109
2 changed files with 8 additions and 1 deletions

View File

@@ -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,

View File

@@ -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 {