Skip to content

Code Review: Add Collapse All / Expand All for file diffs #9129

@lucachitayat

Description

@lucachitayat

Pre-submit Checks

Describe the solution you'd like?

Add Collapse All and Expand All buttons (or a toggle) to the Code Review diff panel. These would collapse or expand every file diff in the current view with a single click.

Ideally placed near the top of the diff panel alongside the existing file list controls — similar to how VS Code's Source Control and GitHub's PR diff view provide collapse/expand all affordances.

Is your feature request related to a problem? Please describe.

When reviewing branches with many changed files — especially when using worktrees — navigating to a specific file's diff requires manually scrolling past or clicking through every expanded file. Even with just 7–10 changed files and 500–1,000 lines of changes, the diff panel becomes difficult to navigate. There is no way to collapse all diffs at once, get a quick overview of what changed, and then selectively expand only the files you care about.

The problem compounds when switching between worktrees frequently, since you're re-orienting yourself across multiple branches throughout the day.

Additional context

Operating system (OS)

macOS

How important is this feature to you?

4 (Important)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:code-reviewGit diff views, review UI, review comments, and PR-focused agent flows.enhancementNew feature or request.needs-mockstriagedIssue has received an initial automated triage pass.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions