fix(panel): replace native width input, fix select menu open reflow, and gate context window settings behind risk consent

- Replace native <input type="number"> in popover width settings with CustomNumberInput stepper and hide native number spinbuttons globally
- Eliminate single/multi-select option reflow on open by removing scale(0.985) GPU layer teardown in anim-popover-in, floating .scrollbar-rail without flex width squeeze, and reconciling options before unhiding .select-menu
- Gate Model Context Settings behind a persistent risk consent mask (contextWindowRiskAccepted, default false and re-locked on factory reset)
This commit is contained in:
fish
2026-11-16 18:10:31 +09:00
parent 3b36ade911
commit 4670dd0a0e
17 changed files with 503 additions and 102 deletions
@@ -508,6 +508,7 @@ export const DEFAULT_SETTINGS_SCHEMA = Object.freeze({
showStepSpeedColor: false,
stepTokenComboFormat: DEFAULT_STEP_TOKEN_COMBO_FORMAT,
stepTableColumns: DEFAULT_STEP_TABLE_COLUMNS,
contextWindowRiskAccepted: false,
modelContextWindows: Object.freeze({}),
});
@@ -543,6 +544,7 @@ export function createDefaultSettingsObject() {
showStepSpeedColor: DEFAULT_SETTINGS_SCHEMA.showStepSpeedColor,
stepTokenComboFormat: DEFAULT_SETTINGS_SCHEMA.stepTokenComboFormat,
stepTableColumns: [...DEFAULT_STEP_TABLE_COLUMNS],
contextWindowRiskAccepted: DEFAULT_SETTINGS_SCHEMA.contextWindowRiskAccepted,
modelContextWindows: {},
};
}
@@ -600,6 +602,7 @@ export function normalizeFullSettings(rawInput) {
showStepSpeedColor: safeRaw.showStepSpeedColor === true,
stepTokenComboFormat: normalizeStepTokenComboFormat(safeRaw.stepTokenComboFormat),
stepTableColumns: normalizeStepTableColumns(safeRaw.stepTableColumns),
contextWindowRiskAccepted: safeRaw.contextWindowRiskAccepted === true,
modelContextWindows: normalizeModelContextWindows(safeRaw.modelContextWindows),
};
}