mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
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:
@@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user