From 3e74107e368f236fd9dc05624d9667ff6bdc6431 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 7 Aug 2025 19:02:21 -0400 Subject: [PATCH] looser todo tool schema --- packages/opencode/src/tool/todo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opencode/src/tool/todo.ts b/packages/opencode/src/tool/todo.ts index adb0c509..7a11470f 100644 --- a/packages/opencode/src/tool/todo.ts +++ b/packages/opencode/src/tool/todo.ts @@ -5,8 +5,8 @@ import { App } from "../app/app" const TodoInfo = z.object({ content: z.string().describe("Brief description of the task"), - status: z.enum(["pending", "in_progress", "completed", "cancelled"]).describe("Current status of the task"), - priority: z.enum(["high", "medium", "low"]).describe("Priority level of the task"), + status: z.string().describe("Current status of the task: pending, in_progress, completed, cancelled"), + priority: z.string().describe("Priority level of the task: high, medium, low"), id: z.string().describe("Unique identifier for the todo item"), }) type TodoInfo = z.infer