@@ -22,8 +22,6 @@ export interface ToolSettings {
2222 limitNudgeInterval : number
2323 protectedTools : string [ ]
2424 contextLimit : number | `${number } %`
25- contextPressureEnabled : boolean
26- compressContextEnabled : boolean
2725 modelLimits ?: Record < string , number | `${number } %`>
2826}
2927
@@ -110,8 +108,6 @@ export const VALID_CONFIG_KEYS = new Set([
110108 "tools.settings.limitNudgeInterval" ,
111109 "tools.settings.protectedTools" ,
112110 "tools.settings.contextLimit" ,
113- "tools.settings.contextPressureEnabled" ,
114- "tools.settings.compressContextEnabled" ,
115111 "tools.settings.modelLimits" ,
116112 "tools.compress" ,
117113 "tools.compress.permission" ,
@@ -348,17 +344,6 @@ export function validateConfigTypes(config: Record<string, any>): ValidationErro
348344 }
349345 }
350346
351- if (
352- tools . settings . contextPressureEnabled !== undefined &&
353- typeof tools . settings . contextPressureEnabled !== "boolean"
354- ) {
355- errors . push ( {
356- key : "tools.settings.contextPressureEnabled" ,
357- expected : "boolean" ,
358- actual : typeof tools . settings . contextPressureEnabled ,
359- } )
360- }
361-
362347 if ( tools . settings . modelLimits !== undefined ) {
363348 if (
364349 typeof tools . settings . modelLimits !== "object" ||
@@ -561,8 +546,6 @@ const defaultConfig: PluginConfig = {
561546 limitNudgeInterval : 1 ,
562547 protectedTools : [ ...DEFAULT_PROTECTED_TOOLS ] ,
563548 contextLimit : 100000 ,
564- contextPressureEnabled : true ,
565- compressContextEnabled : true ,
566549 } ,
567550 compress : {
568551 permission : "allow" ,
@@ -735,10 +718,6 @@ function mergeTools(base: PluginConfig["tools"], override?: ToolOverride): Plugi
735718 ] ) ,
736719 ] ,
737720 contextLimit : override . settings ?. contextLimit ?? base . settings . contextLimit ,
738- contextPressureEnabled :
739- override . settings ?. contextPressureEnabled ?? base . settings . contextPressureEnabled ,
740- compressContextEnabled :
741- override . settings ?. compressContextEnabled ?? base . settings . compressContextEnabled ,
742721 modelLimits : override . settings ?. modelLimits ?? base . settings . modelLimits ,
743722 } ,
744723 compress : {
0 commit comments