From 269045e92cd070b6a20c0b74939ad31bd4b24967 Mon Sep 17 00:00:00 2001 From: Crystal Sight Date: Tue, 20 Oct 2026 10:07:19 -0500 Subject: [PATCH] fix: preserve server sigma defaults for WebUI requests (#2172) --- examples/common/common.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/common/common.cpp b/examples/common/common.cpp index 5fd016bc..9e7851fe 100644 --- a/examples/common/common.cpp +++ b/examples/common/common.cpp @@ -2218,7 +2218,8 @@ bool SDGenerationParams::from_json_str( } if (target_custom_sigmas != nullptr && sample_json.contains("custom_sigmas") && - sample_json["custom_sigmas"].is_array()) { + sample_json["custom_sigmas"].is_array() && + !sample_json["custom_sigmas"].empty()) { // empty [] = "not specified", keep server/CLI default *target_custom_sigmas = sample_json["custom_sigmas"].get>(); } if (sample_json.contains("sample_method") && sample_json["sample_method"].is_string()) {