[PR #11070] fix(app): file tabs - auto scroll on open & scroll via mouse wheel #13646

Closed
opened 2026-02-16 18:18:29 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11070

State: closed
Merged: Yes


closes #11013

What does this PR do?

Fixes two issues with the file tabs in the session view:

  1. Auto-scroll to new tabs: When opening a new file tab, the tab list now automatically scrolls to show the rightmost tab, ensuring the tab name and close button are fully visible.
  2. Mouse wheel scrolling: Users can now scroll through tabs horizontally via mouse wheel

How did you verify your code works?

ran locally, ran e2e test suite (local, 1 failure vs 21 passes - same as before the change. The failure is preexisting issue:
e2e\file-tree.spec.ts:3:1 › file tree can expand folders and open a file)

Before

https://github.com/user-attachments/assets/f345f91c-0ccd-454d-874c-eb2be3cb0a28

After

https://github.com/user-attachments/assets/956bb25f-d6e9-411f-b29e-c74011e85af0

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11070 **State:** closed **Merged:** Yes --- closes #11013 ### What does this PR do? Fixes two issues with the file tabs in the session view: 1. Auto-scroll to new tabs: When opening a new file tab, the tab list now automatically scrolls to show the rightmost tab, ensuring the tab name and close button are fully visible. 2. Mouse wheel scrolling: Users can now scroll through tabs horizontally via mouse wheel ### How did you verify your code works? ran locally, ran e2e test suite (local, 1 failure vs 21 passes - same as before the change. The failure is preexisting issue: e2e\file-tree.spec.ts:3:1 › file tree can expand folders and open a file) ## Before https://github.com/user-attachments/assets/f345f91c-0ccd-454d-874c-eb2be3cb0a28 ## After https://github.com/user-attachments/assets/956bb25f-d6e9-411f-b29e-c74011e85af0
yindo added the pull-request label 2026-02-16 18:18:29 -05:00
yindo closed this issue 2026-02-16 18:18:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13646