diff options
| author | Dax Raad <[email protected]> | 2026-01-13 17:14:12 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-01-13 17:14:12 -0500 |
| commit | 0187b6bb72e1fb9dee6794c37e3fa728e46e4b55 (patch) | |
| tree | 18179ace81f10e78c739cc8b3d734eed892f696a | |
| parent | 0eb898abcf653609e35785816e63f61b1c6a7dfa (diff) | |
| download | opencode-0187b6bb72e1fb9dee6794c37e3fa728e46e4b55.tar.gz opencode-0187b6bb72e1fb9dee6794c37e3fa728e46e4b55.zip | |
do not allow agent to ask custom-less questions
| -rw-r--r-- | packages/opencode/src/tool/question.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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({ |
