summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-01-13 17:14:12 -0500
committerFrank <[email protected]>2026-01-13 19:51:01 -0500
commit0026bc5815748a1a377edafeb8cf9fe50afa85e1 (patch)
treee386b3393a08efdd69bc06b2121f11b7e50a6a2c /packages
parentbcdaf7e7791f6b6b81e6a4e04abf5b3e1be5ee91 (diff)
downloadopencode-0026bc5815748a1a377edafeb8cf9fe50afa85e1.tar.gz
opencode-0026bc5815748a1a377edafeb8cf9fe50afa85e1.zip
do not allow agent to ask custom-less questions
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/tool/question.ts2
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({