fix(opencode): avoid nullable webfetch format schema (#30215)

This commit is contained in:
Shoubhit Dash
2026-06-01 14:15:57 +05:30
committed by GitHub
parent bba76009a8
commit 2d2f587bfa
3 changed files with 24 additions and 17 deletions

View File

@@ -17,7 +17,7 @@ export const Parameters = Schema.Struct({
description: "The format to return the content in (text, markdown, or html). Defaults to markdown.",
default: "markdown",
})
.pipe(Schema.optional, Schema.withDecodingDefault(Effect.succeed("markdown" as const))),
.pipe(Schema.withDecodingDefault(Effect.succeed("markdown" as const))),
timeout: Schema.optional(Schema.Number).annotate({ description: "Optional timeout in seconds (max 120)" }),
})