Skip to content

Conversation

@mcheviron
Copy link
Contributor

@mcheviron mcheviron commented Jan 8, 2026

Summary

  • Add protectedFilePatterns (glob patterns) to prevent pruning of tool calls with matching parameters.filePath.
  • Enforce protection across deduplication, supersede-writes, purge-errors, and manual pruning (<prunable-tools>, discard, extract).

Fixes #21

Test plan

  • npm run typecheck
  • npm test

Tarquinen and others added 4 commits January 5, 2026 00:51
Introduced a new configuration option `protectedFilePatterns` to the plugin, allowing users to specify glob patterns that protect certain file operations from being pruned. Updated relevant functions to check against these patterns before executing pruning actions.
@mcheviron
Copy link
Contributor Author

@Tarquinen would this work for you?

@Tarquinen
Copy link
Collaborator

This looks great, sorry for the delay finally got time to check this out

@Tarquinen Tarquinen changed the base branch from master to dev January 10, 2026 18:06
@Tarquinen Tarquinen merged commit e1e0891 into Opencode-DCP:dev Jan 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add protectedFilePatterns config option

2 participants