-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed as duplicate
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.bugSomething isn't workingSomething isn't working
Description
App Version
3.28.1
API Provider
OpenAI Compatible
Model Used
GPT 5
Roo Code Task Links (Optional)
No response
π Steps to Reproduce
Description:
When applying diffs to files, the diff tool incorrectly normalizes < and < as equivalent, causing false positives where no changes are detected. As a result, valid diffs that replace escaped generic type syntax (<...>) with real generic type syntax (<...>) are ignored.
Steps to Reproduce:
-
Have a file containing escaped generics:
.FilterBatch<int>(batch => batch.Count == 3) .MapBatch<int, int>(batch => batch.Sum())
-
Apply a diff that replaces
</>with</>:
LLM is suggesting:
<![CDATA[
<<<<<<< SEARCH
.FilterBatch<int>(batch => batch.Count == 3)
=======
.FilterBatch<int>(batch => batch.Count == 3)
>>>>>>> REPLACE
]]>
<![CDATA[
<<<<<<< SEARCH
.MapBatch<int, int>(batch => batch.Sum())
=======
.MapBatch<int, int>(batch => batch.Sum())
>>>>>>> REPLACE
]]>
- The diff tool reports:
Diff 1: Search and replace content are identical - no changes would be made
Debug Info:
- Search and replace must be different to make changes
- Use read_file to verify the content you want to change
tests/TorqueFlow.Tests/DslTests.cs - Diff 2: Search and replace content are identical - no changes would be made
Debug Info:
- Search and replace must be different to make changes
- Use read_file to verify the content you want to change
π₯ Outcome Summary
Expected Behavior:
The tool should recognize < and < (likewise > and >) as different tokens, and apply the replacement accordingly.
Actual Behavior:
The diff tool normalizes them as equivalent, leading to false negatives and preventing legitimate replacements.
π Relevant Logs or Errors (Optional)
Metadata
Metadata
Assignees
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done