Skip to content

[ENHANCEMENT] Include deleted files in "lines removed" count so net LOC reflects file deletions #11911

@raf202

Description

@raf202

Problem (one or two sentences)

When the AI deletes files during refactors, those deleted files are not counted in the "lines removed" metric. That hides real reductions in code size and prevents seeing the true net lines of code change per iteration.

Context (who is affected and when)

Developers using Roo Code to review AI-generated edits and refactors. Happens whenever the AI deletes one or more files as part of a diff or refactor. Most visible during large refactors where files are removed rather than line-by-line edits.

Desired behavior (conceptual, not technical)

Count removed lines from deleted files and add them to the "lines removed" metric so the displayed added/removed counts reflect the true net change in code size. Optionally provide a toggle in settings to make deleted files count or not towards the total.

Constraints / preferences (optional)

No response

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Roo Code Task Links (optional)

No response

Acceptance criteria (optional)

No response

Proposed approach (optional)

No response

Trade-offs / risks (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions