Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
This repository was archived by the owner on May 15, 2026. It is now read-only.

[ENHANCEMENT] Restore editor scroll position after closing diff view #9282

Description

@XiaoYingYo

Problem (one or two sentences)

When using the diff viewer to review changes, after clicking 'Accept' or 'Reject', the focus returns to the file editor, but the cursor is always moved to the beginning of the file. This forces the user to manually scroll back to the location of the changes, disrupting the workflow.

Context (who is affected and when)

This issue affects all users who rely on the diff viewer for code reviews and accepting AI-generated changes. It occurs every time a diff view is closed, regardless of the file type or the complexity of the changes.

Desired behavior (conceptual, not technical)

After closing the diff viewer (either by accepting or rejecting the changes), the editor for the corresponding file should automatically scroll to the position that was last visible in the diff viewer. This ensures a seamless transition and allows the user to immediately continue their work from where they left off.

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 requestIssue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.UI/UXUI/UX related or focused

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions