fix: Show experiment values in settings UI for compressionThreshold (#16267)

Co-authored-by: Vedant Mahajan <vedant.04.mahajan@gmail.com>
This commit is contained in:
Ishaan Gupta
2026-01-17 08:48:34 +05:30
committed by GitHub
parent a76946189a
commit 86dbf2013e
4 changed files with 34 additions and 5 deletions
@@ -29,7 +29,7 @@ import {
isDefaultValue,
requiresRestart,
getRestartRequiredFromModified,
getDefaultValue,
getEffectiveDefaultValue,
setPendingSettingValueAny,
getNestedValue,
getEffectiveValue,
@@ -743,7 +743,10 @@ export function SettingsDialog({
// Ctrl+C or Ctrl+L: Clear current setting and reset to default
const currentSetting = items[activeSettingIndex];
if (currentSetting) {
const defaultValue = getDefaultValue(currentSetting.value);
const defaultValue = getEffectiveDefaultValue(
currentSetting.value,
config,
);
const defType = currentSetting.type;
if (defType === 'boolean') {
const booleanDefaultValue =
@@ -963,7 +966,10 @@ export function SettingsDialog({
const path = item.value.split('.');
const currentValue = getNestedValue(pendingSettings, path);
const defaultValue = getDefaultValue(item.value);
const defaultValue = getEffectiveDefaultValue(
item.value,
config,
);
if (currentValue !== undefined && currentValue !== null) {
displayValue = String(currentValue);