Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Dec 23, 2025

Closes #10648

Summary

Removes the diffEnabled toggle and fuzzyMatchThreshold slider settings from Roo Code. These settings are being removed for several reasons:

  1. Fuzzy matching was a band-aid - It was introduced for weaker models that couldn't produce exact matches, but 100% precision is the correct approach. Fuzzy matching just papers over model quality issues while introducing risk of incorrect replacements.

  2. Settings were misleading - These settings appeared in the UI for all configurations, including OpenAI-native models that use apply_patch instead of apply_diff. Users could toggle these settings thinking they were affecting behavior when in reality they had zero impact.

  3. False sense of control - If diffs aren't working, tweaking fuzzy match thresholds doesn't fix the root cause. These settings gave users knobs that don't solve their actual problems.

  4. OOTB complexity - These settings added cognitive load without meaningful benefit, overcomplicating the out-of-box experience.

Changes

  • Remove diffEnabled and fuzzyMatchThreshold from provider settings types (provider-settings.ts, global-settings.ts, task.ts, cloud.ts)
  • Delete DiffSettingsControl.tsx UI component entirely
  • Remove diffEnabled parameter from SYSTEM_PROMPT() function signature
  • Remove conditional apply_diff tool exclusion from filter-tools-for-mode.ts
  • Remove diffEnabled migration from ProviderSettingsManager.ts
  • Remove setDiffEnabled and setFuzzyMatchThreshold from ExtensionStateContext.tsx
  • Remove matchPrecision translations from all 18 locale files
  • Update related tests across multiple spec files

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Dec 23, 2025
@roomote
Copy link
Contributor

roomote bot commented Dec 23, 2025

Oroocle Clock   See task on Roo Cloud

Re-review complete. All previously flagged issues have been resolved. No new issues found.

  • Remove enableDiff from public CreateTaskOptions, or clearly deprecate it as a no-op now that diffs are always enabled.
Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Dec 23, 2025
@hannesrudolph hannesrudolph moved this from Triage to PR [Draft / In Progress] in Roo Code Roadmap Jan 8, 2026
@hannesrudolph hannesrudolph added PR - Draft / In Progress and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Jan 8, 2026
@hannesrudolph hannesrudolph force-pushed the chore/remove-diff-enabled-setting branch from 2c6ed92 to 4ab09f1 Compare January 23, 2026 06:59
Native tool calling makes these controls obsolete. Removes:
- diffEnabled and fuzzyMatchThreshold from provider settings types
- DiffSettingsControl UI component
- Related translations from all 18 locale files
- System prompt diffEnabled parameter
- Conditional apply_diff tool filtering based on diffEnabled
- Associated tests and migrations
Remove enableDiff property from public CreateTaskOptions interface since
diffs are now always enabled. This addresses the review feedback to clean
up the no-op property.

- Remove enableDiff from packages/types/src/task.ts
- Remove enableDiff usage from test file
@hannesrudolph hannesrudolph force-pushed the chore/remove-diff-enabled-setting branch from fb5481b to 8a75e60 Compare January 23, 2026 21:03
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 23, 2026
@mrubens mrubens merged commit 85f42dc into main Jan 23, 2026
10 checks passed
@mrubens mrubens deleted the chore/remove-diff-enabled-setting branch January 23, 2026 21:39
@github-project-automation github-project-automation bot moved this from PR [Draft / In Progress] to Done in Roo Code Roadmap Jan 23, 2026
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer PR - Draft / In Progress size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Remove obsolete diffEnabled and fuzzyMatchThreshold settings

3 participants