feat(panel): graduate Modern UI as default, default language to system, and fix 5h quota boundary

This commit is contained in:
fish
2026-11-20 23:29:56 +09:00
parent ab4caf39a6
commit 55320df9b7
24 changed files with 590 additions and 165 deletions
+8
View File
@@ -30,6 +30,7 @@ import {
lsRuntimeEndpoint,
normalizeFullSettings,
normalizeModelDisplayMode,
normalizeModernUi,
normalizePluginUpdateMode,
normalizeWindowMountMode,
saveJson,
@@ -333,9 +334,16 @@ export function executeSettingsAction(data) {
? 'upstream'
: 'short'
: normalizeModelDisplayMode(current.modelDisplayMode, current.showUpstreamModel);
const nextModernUi =
payload.modernUi !== undefined
? normalizeModernUi(payload.modernUi)
: payload.experimentalModernUi !== undefined
? normalizeModernUi(payload.experimentalModernUi)
: normalizeModernUi(current.modernUi);
const updated = normalizeFullSettings({
...current,
...payload,
modernUi: nextModernUi,
modelContextWindows: current.modelContextWindows,
weeklyTokenBudget: sanitizePositiveSettingNumber(
payload.weeklyTokenBudget ?? payload.weeklyTokenLimit,