Skip to content

fix: make session scrollbar track visible on default theme#26009

Open
Kushalk0677 wants to merge 2 commits intoanomalyco:devfrom
Kushalk0677:fix/session-scrollbar-visibility-v2
Open

fix: make session scrollbar track visible on default theme#26009
Kushalk0677 wants to merge 2 commits intoanomalyco:devfrom
Kushalk0677:fix/session-scrollbar-visibility-v2

Conversation

@Kushalk0677
Copy link
Copy Markdown

@Kushalk0677 Kushalk0677 commented May 6, 2026

The session scrollbar does not render in the TUI on the default opencode theme — the track background color blends into the surrounding panel making it invisible.

Issue for this PR

Closes #25981

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Changes the scrollbar track colors to match the sidebar's existing working approach: track backgroundColor uses theme.background (#0a0a0a) so it blends into the session viewport, and foregroundColor uses theme.borderActive (#606060) for a visible thumb. The sidebar uses the same pattern at sidebar.tsx:40-44.

How did you verify your code works?

  • Ran bun dev . with scrollbar_visible temporarily set to true
  • Verified the scrollbar thumb is visible against the dark session background
  • Confirmed the track disappears naturally into the viewport background

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label May 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

The following comment was made by an LLM, it may be inaccurate:

Based on the search results, I found related PRs addressing similar scrollbar visibility issues:

Related PRs:

  1. PR fix: make scrollbar visible in Monokai theme #24507 - "fix: make scrollbar visible in Monokai theme"

    • Addresses scrollbar visibility in a different theme variant
    • Similar approach to fixing contrast/visibility issues
  2. PR fix(tui): improve session scrollbar contrast #17446 - "fix(tui): improve session scrollbar contrast"

    • Older PR focused on scrollbar contrast improvements
    • Related to the same feature area

These PRs tackle similar scrollbar visibility problems but target different themes or are from earlier attempts. PR #26009 (the current PR) appears to be the focused fix for the default theme specifically, closing issue #25981.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label May 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Session scrollbar not visible in default opencode theme on Windows Terminal

1 participant