mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-13 11:30:39 -07:00
schema changes
This commit is contained in:
@@ -2221,7 +2221,7 @@ describe('loadCliConfig context management', () => {
|
||||
const argv = await parseArguments(createTestMergedSettings());
|
||||
const contextManagementConfig: Partial<ContextManagementConfig> = {
|
||||
budget: {
|
||||
incrementalGc: false,
|
||||
maxPressureStrategy: 'truncate',
|
||||
maxTokens: 100_000,
|
||||
retainedTokens: 50_000,
|
||||
protectedEpisodes: 1,
|
||||
|
||||
@@ -48,6 +48,7 @@ import {
|
||||
detectIdeFromEnv,
|
||||
GENERALIST_PROFILE,
|
||||
POWER_USER_PROFILE,
|
||||
STRESS_TEST_PROFILE,
|
||||
} from '@google/gemini-cli-core';
|
||||
import {
|
||||
type Settings,
|
||||
@@ -887,15 +888,17 @@ export async function loadCliConfig(
|
||||
|
||||
const useGeneralistProfile =
|
||||
settings.experimental?.generalistProfile ?? false;
|
||||
const useStressTestProfile = settings.experimental?.stressTestProfile ?? false;
|
||||
const usePowerUserProfile = settings.experimental?.powerUserProfile ?? false;
|
||||
const useContextManagement =
|
||||
settings.experimental?.contextManagement ?? false;
|
||||
const contextManagement = {
|
||||
...(useGeneralistProfile ? GENERALIST_PROFILE : {}),
|
||||
...(usePowerUserProfile ? POWER_USER_PROFILE : {}),
|
||||
...(useStressTestProfile ? STRESS_TEST_PROFILE : {}),
|
||||
...(useContextManagement ? settings?.contextManagement : {}),
|
||||
enabled:
|
||||
useContextManagement || useGeneralistProfile || usePowerUserProfile,
|
||||
useContextManagement || useGeneralistProfile || usePowerUserProfile || useStressTestProfile,
|
||||
};
|
||||
|
||||
return new Config({
|
||||
|
||||
@@ -2159,6 +2159,16 @@ const SETTINGS_SCHEMA = {
|
||||
'Enables continuous minimal GC near the max tokens limit instead of a blocked backbuffer.',
|
||||
showInDialog: true,
|
||||
},
|
||||
stressTestProfile: {
|
||||
type: 'boolean',
|
||||
label: 'Stress Test Profile (Context GC)',
|
||||
category: 'Experimental',
|
||||
requiresRestart: true,
|
||||
default: false,
|
||||
description:
|
||||
'Aggressively limits the token budget (6k retained, 12k max) to force rapid background snapshotting and foreground truncations for local E2E testing of the context system.',
|
||||
showInDialog: true,
|
||||
},
|
||||
generalistProfile: {
|
||||
type: 'boolean',
|
||||
label: 'Use the generalist profile to manage agent contexts.',
|
||||
|
||||
Reference in New Issue
Block a user