@@ -30,7 +30,7 @@ export interface ConfigResult {
3030const defaultConfig : PluginConfig = {
3131 enabled : true ,
3232 debug : false ,
33- protectedTools : [ 'task' , 'todowrite' , 'todoread' , 'context_pruning ' ] ,
33+ protectedTools : [ 'task' , 'todowrite' , 'todoread' , 'prune (DCP) ' ] ,
3434 showModelErrorToasts : true ,
3535 strictModelSelection : false ,
3636 pruning_summary : 'detailed' ,
@@ -122,9 +122,9 @@ function createDefaultConfig(): void {
122122 // Summary display: "off", "minimal", or "detailed"
123123 "pruning_summary": "detailed",
124124 // How often to nudge the AI to prune (every N tool results, 0 = disabled)
125- "nudge_freq": 10,
126- // Tools that should never be pruned
127- "protectedTools": ["task", "todowrite", "todoread", "context_pruning "]
125+ "nudge_freq": 10
126+ // Additional tools to protect from pruning (merged with built-in: task, todowrite, todoread, prune (DCP))
127+ // "protectedTools": ["bash "]
128128}
129129`
130130
@@ -196,7 +196,7 @@ export function getConfig(ctx?: PluginInput): ConfigResult {
196196 config = {
197197 enabled : globalConfig . enabled ?? config . enabled ,
198198 debug : globalConfig . debug ?? config . debug ,
199- protectedTools : globalConfig . protectedTools ?? config . protectedTools ,
199+ protectedTools : [ ... new Set ( [ ... config . protectedTools , ... ( globalConfig . protectedTools ?? [ ] ) ] ) ] ,
200200 model : globalConfig . model ?? config . model ,
201201 showModelErrorToasts : globalConfig . showModelErrorToasts ?? config . showModelErrorToasts ,
202202 strictModelSelection : globalConfig . strictModelSelection ?? config . strictModelSelection ,
@@ -227,7 +227,7 @@ export function getConfig(ctx?: PluginInput): ConfigResult {
227227 config = {
228228 enabled : projectConfig . enabled ?? config . enabled ,
229229 debug : projectConfig . debug ?? config . debug ,
230- protectedTools : projectConfig . protectedTools ?? config . protectedTools ,
230+ protectedTools : [ ... new Set ( [ ... config . protectedTools , ... ( projectConfig . protectedTools ?? [ ] ) ] ) ] ,
231231 model : projectConfig . model ?? config . model ,
232232 showModelErrorToasts : projectConfig . showModelErrorToasts ?? config . showModelErrorToasts ,
233233 strictModelSelection : projectConfig . strictModelSelection ?? config . strictModelSelection ,
0 commit comments