Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Dec 23, 2025

Summary

Removes the "Enable editing through diffs" (diffEnabled) and "Match precision" (fuzzyMatchThreshold) settings from Roo Code. Native tool calling makes these controls obsolete.

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 from ExtensionStateContext.tsx
  • Remove diffEnabled, diffEnabledDescription, matchPrecision, and matchPrecisionDescription translations from all 18 locale files
  • Update related tests in system-prompt.spec.ts, Task.spec.ts, ClineProvider.spec.ts, and ApiOptions.spec.tsx

Important

Remove obsolete diffEnabled and fuzzyMatchThreshold settings from configuration, UI, and tests, and update translations.

  • Settings Removal:
    • Remove diffEnabled and fuzzyMatchThreshold from provider-settings.ts, global-settings.ts, task.ts, cloud.ts.
    • Delete DiffSettingsControl.tsx component.
    • Remove diffEnabled parameter from SYSTEM_PROMPT() function.
    • Remove diffEnabled migration from ProviderSettingsManager.ts.
    • Remove setDiffEnabled from ExtensionStateContext.tsx.
  • Translations:
    • Remove diffEnabled, diffEnabledDescription, matchPrecision, matchPrecisionDescription from all 18 locale files.
  • Tests:
    • Update tests in system-prompt.spec.ts, Task.spec.ts, ClineProvider.spec.ts, ApiOptions.spec.tsx to reflect removal of settings.

This description was created by Ellipsis for 2c6ed92. You can customize this summary. It will automatically update as commits are pushed.

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
@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. No new issues found in commits since the last review.

  • 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
*/

export interface CreateTaskOptions {
enableDiff?: boolean
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enableDiff is still exposed in CreateTaskOptions, but it no longer affects runtime behavior now that Task always initializes a diff strategy. Keeping this flag makes the API misleading (callers can set it but nothing changes), so it seems better to remove or explicitly deprecate it.

Fix it with Roo Code or mention @roomote and request a fix.

*/

export interface CreateTaskOptions {
enableDiff?: boolean
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CreateTaskOptions.enableDiff still exists in the public types, but this PR makes diff strategy initialization unconditional, so this flag becomes a no-op for consumers. That mismatch can lead to confusing integrations where callers think they can disable diffs.

Suggested change
enableDiff?: boolean
/** @deprecated Diff editing is always enabled; this flag is ignored. */
enableDiff?: boolean

Fix it with Roo Code or mention @roomote and request a fix.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

2 participants