Skip to content

Commit 0026bc5

Browse files
thdxrfwang
authored andcommitted
do not allow agent to ask custom-less questions
1 parent bcdaf7e commit 0026bc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/tool/question.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import DESCRIPTION from "./question.txt"
66
export const QuestionTool = Tool.define("question", {
77
description: DESCRIPTION,
88
parameters: z.object({
9-
questions: z.array(Question.Info).describe("Questions to ask"),
9+
questions: z.array(Question.Info.omit({ custom: true })).describe("Questions to ask"),
1010
}),
1111
async execute(params, ctx) {
1212
const answers = await Question.ask({

0 commit comments

Comments
 (0)