Scrollbar is tiny on initial session load; resizing window fixes it #3577

Open
opened 2026-02-16 17:40:43 -05:00 by yindo · 5 comments
Owner

Originally created by @nalin-singh on GitHub (Dec 15, 2025).

Originally assigned to: @nalin-singh on GitHub.

Description

On first loading a session, the vertical scrollbar is rendered extremely small and almost unusable. If I resize the window down and then back to its original size, the scrollbar is recalculated and becomes normal-sized and usable.

Steps to Reproduce

  1. Open the app.
  2. Load an existing session (or create a new one with enough content to need scrolling).
  3. Look at the vertical scrollbar on the right side.
  4. Without interacting with the content, resize the window to be smaller.
  5. Resize the window back to its previous size.

Actual Result

  • On step 3: The scrollbar thumb is very small and hard to grab, even though the content is not extremely long.
  • After steps 4–5: The scrollbar thumb becomes larger and matches the expected size for the amount of scrollable content.

Expected Result

  • The scrollbar thumb should be correctly sized and usable as soon as the session loads, without needing to resize the window

OpenCode version

1.0.162

Steps to reproduce

  1. Open the app.
  2. Load an existing session (or create a new one with enough content to need scrolling).
  3. Look at the vertical scrollbar on the right side.
  4. Without interacting with the content, resize the window to be smaller.
  5. Resize the window back to its previous size.

Screenshot and/or share link

https://github.com/user-attachments/assets/dbc0b960-ac94-4086-abc1-7059cb676a88

Operating System

macOS

Terminal

Ghostty

Originally created by @nalin-singh on GitHub (Dec 15, 2025). Originally assigned to: @nalin-singh on GitHub. ### Description On first loading a session, the vertical scrollbar is rendered extremely small and almost unusable. If I resize the window down and then back to its original size, the scrollbar is recalculated and becomes normal-sized and usable. Steps to Reproduce 1. Open the app. 2. Load an existing session (or create a new one with enough content to need scrolling). 3. Look at the vertical scrollbar on the right side. 4. Without interacting with the content, resize the window to be smaller. 5. Resize the window back to its previous size. Actual Result - On step 3: The scrollbar thumb is very small and hard to grab, even though the content is not extremely long. - After steps 4–5: The scrollbar thumb becomes larger and matches the expected size for the amount of scrollable content. Expected Result - The scrollbar thumb should be correctly sized and usable as soon as the session loads, without needing to resize the window ### OpenCode version 1.0.162 ### Steps to reproduce 1. Open the app. 2. Load an existing session (or create a new one with enough content to need scrolling). 3. Look at the vertical scrollbar on the right side. 4. Without interacting with the content, resize the window to be smaller. 5. Resize the window back to its previous size. ### Screenshot and/or share link https://github.com/user-attachments/assets/dbc0b960-ac94-4086-abc1-7059cb676a88 ### Operating System macOS ### Terminal Ghostty
yindo added the bug label 2026-02-16 17:40:43 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 15, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #5592: Scroll bar will cover the content

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 15, 2025): This issue might be a duplicate of existing issues. Please check: - #5592: Scroll bar will cover the content Feel free to ignore if none of these address your specific case.
Author
Owner

@nalin-singh commented on GitHub (Dec 15, 2025):

This is an example chat where the initial load is still not that bad, I've a few other sessions where it will unusable.

@nalin-singh commented on GitHub (Dec 15, 2025): This is an example chat where the initial load is still not that bad, I've a few other sessions where it will unusable.
Author
Owner

@nalin-singh commented on GitHub (Dec 15, 2025):

I can work a fix for this

@nalin-singh commented on GitHub (Dec 15, 2025): I can work a fix for this
Author
Owner

@rekram1-node commented on GitHub (Dec 15, 2025):

sounds good! could possibly require upstream change in sst/opentui

@rekram1-node commented on GitHub (Dec 15, 2025): sounds good! could possibly require upstream change in sst/opentui
Author
Owner

@nalin-singh commented on GitHub (Dec 15, 2025):

will give it a try, won't hog for long

@nalin-singh commented on GitHub (Dec 15, 2025): will give it a try, won't hog for long
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3577