mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 13:53:02 -07:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user