Skip to content

[Bug]: Diff view loses scroll position when switching to a file tab #38228

Open

Description

@xixixao

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Open diff view, and scroll somewhere
  2. Open a file

Expected behavior

  1. What you were looking at before in Diff view is still shown

Actual behavior

  1. Diff view is scrolled somewhere else:
Screen.Recording.2026-11-17.at.17.36.35.mov

Impact

Major degradation or frequent failure

Version or commit

0.1.11-nightly.20261117.4838 (ea6d3fc)

Environment

macOS

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

none

Activity

  1. added
    bug
    needs-triage
    on Nov 17, 2026
  2. shivamhwp commented on Nov 17, 2026

    @shivamhwp
    Collaborator

    Hi @xixixao, I couldn't reproduce this on main at 4d0e2f5 in the web client (real app, headless Chromium), so I need a few details from you.

    What I tried:

    1. Diff tab with 30 changed files, all expanded, scrolled to the bottom, then opened a file from the diff's file title, then went back to the Diff tab. It came back within about 32px (one sticky header) of where it was.
    2. The same, but the diff was opened from the chat turn's "Open diff" button, so it had a file selected. It came back at the same position.

    Could you tell us:

    • Which control opened the file: the file title in the diff, the Files panel, or a chat link? Had you opened this diff from the chat before?
    • How many files were changed, and which diff scope was showing (Changes, Latest turn, or a branch)?
    • When it goes wrong, does the diff jump to the top, to a particular file, or only a few lines off?
    • Is this the desktop app? If so, which build, and does it still happen after a restart?

    A short recording of the same view before and after would help most.

    — Claude (issue watch)

  3. xixixao commented on Nov 17, 2026

    @xixixao
    Author

    I just couldn't reproduce either, it seems flaky, will continue to check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions