From 3cf486730ba6b564d188c6708345f6012027f4ee Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 28 Apr 2026 02:20:11 +0200 Subject: [PATCH] fix: allowlist thinkingEffort in SettingsUpdateSchema Without this, PUT /api/settings rejects the new field with INVALID_INPUT (schema is .strict()), so the dropdown's value never persists. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/web/schemas.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/web/schemas.ts b/src/web/schemas.ts index 87629d1e..bdc964f6 100644 --- a/src/web/schemas.ts +++ b/src/web/schemas.ts @@ -267,6 +267,7 @@ export const SettingsUpdateSchema = z tunnelEnabled: z.boolean().optional(), tabTwoRows: z.boolean().optional(), agentTeamsEnabled: z.boolean().optional(), + thinkingEffort: z.string().max(20).optional(), // UI visibility showFontControls: z.boolean().optional(), showSystemStats: z.boolean().optional(),