summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-01-24 23:11:18 -0500
committerAiden Cline <[email protected]>2026-01-24 23:11:21 -0500
commit397ee419d1efb0ecd259cc685b6c6bb976a73acf (patch)
tree30006a0834427caaa5b5ff6c2f74821bff254bca /packages
parentb1072053ba8cf74160039639b6c926d64e1c5f32 (diff)
downloadopencode-397ee419d1efb0ecd259cc685b6c6bb976a73acf.tar.gz
opencode-397ee419d1efb0ecd259cc685b6c6bb976a73acf.zip
tweak: make question valdiation more lax to avoid tool call failures
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/question/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/src/question/index.ts b/packages/opencode/src/question/index.ts
index 41029ecbb..c93b74b9a 100644
--- a/packages/opencode/src/question/index.ts
+++ b/packages/opencode/src/question/index.ts
@@ -10,7 +10,7 @@ export namespace Question {
export const Option = z
.object({
- label: z.string().max(30).describe("Display text (1-5 words, concise)"),
+ label: z.string().describe("Display text (1-5 words, concise)"),
description: z.string().describe("Explanation of choice"),
})
.meta({
@@ -21,7 +21,7 @@ export namespace Question {
export const Info = z
.object({
question: z.string().describe("Complete question"),
- header: z.string().max(30).describe("Very short label (max 30 chars)"),
+ header: z.string().describe("Very short label (max 30 chars)"),
options: z.array(Option).describe("Available choices"),
multiple: z.boolean().optional().describe("Allow selecting multiple choices"),
custom: z.boolean().optional().describe("Allow typing a custom answer (default: true)"),