From 8401508e9a00651a15733de09e11917c9ec8f604 Mon Sep 17 00:00:00 2001 From: Hugo Nijhuis Date: Thu, 14 May 2026 22:53:53 +0200 Subject: [PATCH] Fix tea_issue_create: use Bun.$ and include description --- .opencode/tools/tea-issue-create.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.opencode/tools/tea-issue-create.ts b/.opencode/tools/tea-issue-create.ts index a91fffb..dc1ba64 100644 --- a/.opencode/tools/tea-issue-create.ts +++ b/.opencode/tools/tea-issue-create.ts @@ -1,8 +1,4 @@ import { tool } from "@opencode-ai/plugin" -import { exec } from "child_process" -import { promisify } from "util" - -const execAsync = promisify(exec) export default tool({ description: "Create a new issue in the GitHub repository using tea CLI", @@ -13,8 +9,8 @@ export default tool({ milestone: tool.schema.string().optional().describe("Milestone name"), }, async execute(args) { - const cmd = `tea issues create -t "${args.title}"` - const { stdout, stderr } = await execAsync(cmd) - return stdout.trim() + const cmd = `tea issues create -t "${args.title}" -d "${args.description}"` + const result = await Bun.$`${cmd}`.text() + return result.trim() }, }) \ No newline at end of file