mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 11:14:23 +01:00
rework
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user