소스 검색

do not allow agent to ask custom-less questions

Dax Raad 9 달 전
부모
커밋
0187b6bb72
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/opencode/src/tool/question.ts

+ 1 - 1
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({