Skip to content

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

Closed

Description

@nalin-singh

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

Screen.Recording.2025-12-16.at.9.27.53.AM.mov

Operating System

macOS

Terminal

Ghostty

Activity

  1. added
    bug
    on Dec 16, 2025
  2. github-actions commented on Dec 16, 2025

    @github-actions
    Contributor

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

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

  3. added
    web
    on Dec 16, 2025
  4. nalin-singh commented on Dec 16, 2025

    @nalin-singh
    ContributorAuthor

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

  5. nalin-singh commented on Dec 16, 2025

    @nalin-singh
    ContributorAuthor

    I can work a fix for this

  6. removed
    web
    on Dec 16, 2025
  7. rekram1-node commented on Dec 16, 2025

    @rekram1-node
    Member

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

  8. nalin-singh commented on Dec 16, 2025

    @nalin-singh
    ContributorAuthor

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

  9. WhiteGiverMa commented on May 7, 2026

    @WhiteGiverMa

    Still reproducing on 1.14.40, Windows 11 and wezterm.

    2026-05-07.17-56-22.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions