Skip to content

[Feature] Add setting to auto-expand diffs in "Roo wants to edit this file" chat messages #10955

@jcalfee

Description

@jcalfee

Before expansion:

Image

After clicking on the file name, expansion:

Image

Feature Request

Problem Description:
The diff in "Roo wants to edit this file" messages uses a collapsible <details> element with the filename as <summary>, requiring a click on the gray bar to expand. This interrupts workflow for quick reviews, especially since diffs calculate upfront but aren't auto-visible.

Proposed Solution:
Add a boolean setting roo.fastEdits.autoExpandEditDiffs (default: false) in package.json under contributes.configuration.properties. This exposes it in VS Code/VSCodium Settings (searchable under "Roo Fast Edits") and optionally in any custom settings UI (e.g., via settingsPanel.ts).

In the edit message formatter (e.g., editProposalService.ts or chatHandler.ts), check the setting and append open to <details> if true: <details open><summary>[filename] +X -Y</summary><pre><code class="language-diff">[diff]</code></pre></details>.

This auto-expands cleanly, preserves syntax highlighting, and avoids JS/CSS hacks. Test for large diffs/perf. References bug #10855.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions