From 7f4319821f641ed63fb69451f50aebfd92b6d8f3 Mon Sep 17 00:00:00 2001 From: Hugo Nijhuis Date: Wed, 13 May 2026 20:31:44 +0200 Subject: [PATCH] fixed tea pr list --- .opencode/tools/tea-pr.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;