Skip to content

Commit cd1306b

Browse files
authored
Merge pull request #312 from Opencode-DCP/feature/default-empty-protected-tools-for-hygiene-strategies
feat: default to empty protectedTools for deduplication and purgeErrors strategies
2 parents c537e46 + cf779a7 commit cd1306b

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

lib/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,15 +450,15 @@ const defaultConfig: PluginConfig = {
450450
strategies: {
451451
deduplication: {
452452
enabled: true,
453-
protectedTools: [...DEFAULT_PROTECTED_TOOLS],
453+
protectedTools: [],
454454
},
455455
supersedeWrites: {
456456
enabled: false,
457457
},
458458
purgeErrors: {
459459
enabled: true,
460460
turns: 4,
461-
protectedTools: [...DEFAULT_PROTECTED_TOOLS],
461+
protectedTools: [],
462462
},
463463
},
464464
}

lib/ui/utils.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ function shortenSinglePath(path: string, workingDirectory?: string): string {
6060
return path
6161
}
6262

63-
/**
64-
* Formats a list of pruned items in the style: "→ tool: parameter"
65-
*/
6663
export function formatPrunedItemsList(
6764
pruneToolIds: string[],
6865
toolMetadata: Map<string, ToolParameterEntry>,
@@ -95,9 +92,6 @@ export function formatPrunedItemsList(
9592
return lines
9693
}
9794

98-
/**
99-
* Formats a PruningResult into a human-readable string for the prune tool output.
100-
*/
10195
export function formatPruningResultForTool(
10296
prunedIds: string[],
10397
toolMetadata: Map<string, ToolParameterEntry>,

0 commit comments

Comments
 (0)