Skip to content

Commit 397ee41

Browse files
committed
tweak: make question valdiation more lax to avoid tool call failures
1 parent b107205 commit 397ee41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/opencode/src/question/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export namespace Question {
1010

1111
export const Option = z
1212
.object({
13-
label: z.string().max(30).describe("Display text (1-5 words, concise)"),
13+
label: z.string().describe("Display text (1-5 words, concise)"),
1414
description: z.string().describe("Explanation of choice"),
1515
})
1616
.meta({
@@ -21,7 +21,7 @@ export namespace Question {
2121
export const Info = z
2222
.object({
2323
question: z.string().describe("Complete question"),
24-
header: z.string().max(30).describe("Very short label (max 30 chars)"),
24+
header: z.string().describe("Very short label (max 30 chars)"),
2525
options: z.array(Option).describe("Available choices"),
2626
multiple: z.boolean().optional().describe("Allow selecting multiple choices"),
2727
custom: z.boolean().optional().describe("Allow typing a custom answer (default: true)"),

0 commit comments

Comments
 (0)