mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 00:49:41 +02:00
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) <noreply@anthropic.com>
This commit is contained in:
@@ -267,6 +267,7 @@ export const SettingsUpdateSchema = z
|
|||||||
tunnelEnabled: z.boolean().optional(),
|
tunnelEnabled: z.boolean().optional(),
|
||||||
tabTwoRows: z.boolean().optional(),
|
tabTwoRows: z.boolean().optional(),
|
||||||
agentTeamsEnabled: z.boolean().optional(),
|
agentTeamsEnabled: z.boolean().optional(),
|
||||||
|
thinkingEffort: z.string().max(20).optional(),
|
||||||
// UI visibility
|
// UI visibility
|
||||||
showFontControls: z.boolean().optional(),
|
showFontControls: z.boolean().optional(),
|
||||||
showSystemStats: z.boolean().optional(),
|
showSystemStats: z.boolean().optional(),
|
||||||
|
|||||||
Reference in New Issue
Block a user