From 2a264819f4f933dbe3e0b434896854322dcbb39c Mon Sep 17 00:00:00 2001 From: marius-kilocode Date: Mon, 1 Jun 2026 15:57:20 +0200 Subject: [PATCH] fix(cli): annotate nullable agent variant schema --- packages/opencode/src/config/agent.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/config/agent.ts b/packages/opencode/src/config/agent.ts index c352bd048f..a7ec3922c0 100644 --- a/packages/opencode/src/config/agent.ts +++ b/packages/opencode/src/config/agent.ts @@ -30,10 +30,11 @@ const Color = Schema.Union([ const AgentSchema = Schema.StructWithRest( Schema.Struct({ model: Schema.optional(Schema.NullOr(ConfigModelID)), // kilocode_change - nullable for delete sentinel - // kilocode_change - nullable for delete sentinel + // kilocode_change start - nullable for delete sentinel variant: Schema.optional(Schema.NullOr(Schema.String)).annotate({ description: "Default model variant for this agent (applies only when using the agent's configured model).", }), + // kilocode_change end temperature: Schema.optional(Schema.NullOr(Schema.Finite)), // kilocode_change - nullable for delete sentinel top_p: Schema.optional(Schema.NullOr(Schema.Finite)), // kilocode_change - nullable for delete sentinel prompt: Schema.optional(Schema.NullOr(Schema.String)), // kilocode_change - nullable for delete sentinel