diff --git a/.opencode/tools/tea-pr.ts b/.opencode/tools/tea-pr.ts index a411a03..4e6e708 100644 --- a/.opencode/tools/tea-pr.ts +++ b/.opencode/tools/tea-pr.ts @@ -9,11 +9,12 @@ export const prList = tool({ .enum(["open", "closed", "all"]) .default("open") .describe("Filter by state"), - limit: tool.schema.number().default(30).describe("Number of PRs to return"), + limit: tool.schema.number().optional().describe("Number of PRs to return"), }, async execute(args, context) { try { - const cmd = $`tea pr list --output json --state ${args.state} --limit ${args.limit ?? 30}`; + const limit = args.limit || 30; + const cmd = $`tea pr list --output json --state ${args.state} --limit ${limit}`; const result = await cmd.text(); return result;