57
return normalizeSandboxSettingValue<T>(settingId, modern.value);
58
}
60
if (deprecatedFallbacks?.length) {
62
>
// `chat.agent.sandbox` vs `chat.agent.sandbox.fileSystem.linux`).
63
>
// `inspect()` may surface a populated namespace object even when the
64
>
// exact deprecated key was not explicitly configured by the user, so
65
>
// cross-check against the user-configured key list before honouring
66
>
// a deprecated value.
67
>
const userConfiguredKeys = configurationService.keys().user;
68
>
for (const deprecatedId of deprecatedFallbacks) {
69
>
const deprecated = configurationService.inspect<T>(deprecatedId);
70
>
if (deprecated.userValue !== undefined && userConfiguredKeys.includes(deprecatedId)) {
71
logService.warn(`SandboxSettingsReader: Using deprecated setting ${deprecatedId} because ${settingId} is not set. Please update your settings to use ${settingId} instead.`);
72
return normalizeSandboxSettingValue<T>(settingId, deprecated.value);
73
}
75
}
76
return normalizeSandboxSettingValue<T>(settingId, modern.value);