diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx index c6bc231fca..c7790006f4 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -2195,7 +2195,7 @@ function Question(props: ToolProps) { const { theme } = useTheme() const count = createMemo(() => props.input.questions?.length ?? 0) - function format(answer?: string[]) { + function format(answer?: ReadonlyArray) { if (!answer?.length) return "(no answer)" return answer.join(", ") } diff --git a/packages/opencode/src/question/index.ts b/packages/opencode/src/question/index.ts index f409ed8bb4..2373e8c416 100644 --- a/packages/opencode/src/question/index.ts +++ b/packages/opencode/src/question/index.ts @@ -12,16 +12,16 @@ export namespace Question { // Schemas - const _Option = Schema.Struct({ + export class Option extends Schema.Class