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()
|
next.metadata.error = input.error.toString()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async prepareStep(step) {
|
||||||
|
next.parts.push({
|
||||||
|
type: "step-start",
|
||||||
|
})
|
||||||
|
await updateMessage(next)
|
||||||
|
return step
|
||||||
|
},
|
||||||
toolCallStreaming: false,
|
toolCallStreaming: false,
|
||||||
abortSignal: abort.signal,
|
abortSignal: abort.signal,
|
||||||
maxRetries: 6,
|
maxRetries: 6,
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export const TodoWriteTool = Tool.define({
|
|||||||
export const TodoReadTool = Tool.define({
|
export const TodoReadTool = Tool.define({
|
||||||
id: "opencode.todoread",
|
id: "opencode.todoread",
|
||||||
description: "Use this tool to read your todo list",
|
description: "Use this tool to read your todo list",
|
||||||
parameters: z.void({}),
|
parameters: z.object({}),
|
||||||
async execute(params, opts) {
|
async execute(params, opts) {
|
||||||
const todos = state()[opts.sessionID] ?? []
|
const todos = state()[opts.sessionID] ?? []
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user