From 0026bc5815748a1a377edafeb8cf9fe50afa85e1 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Tue, 13 Jan 2026 17:14:12 -0500 Subject: [PATCH] do not allow agent to ask custom-less questions --- packages/opencode/src/tool/question.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/tool/question.ts b/packages/opencode/src/tool/question.ts index c6f0b9159..a2887546d 100644 --- a/packages/opencode/src/tool/question.ts +++ b/packages/opencode/src/tool/question.ts @@ -6,7 +6,7 @@ import DESCRIPTION from "./question.txt" export const QuestionTool = Tool.define("question", { description: DESCRIPTION, parameters: z.object({ - questions: z.array(Question.Info).describe("Questions to ask"), + questions: z.array(Question.Info.omit({ custom: true })).describe("Questions to ask"), }), async execute(params, ctx) { const answers = await Question.ask({