GeezerVison is showing github.com — fix(tui): scroll overflowing session tabs in place by JonasWortWal · Pull Request #66660 · anomalyco/opencode
Conversation
Issue for this PR
Closes #66659
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
When the horizontal tab bar overflows, click either counter or scroll the mouse wheel over the strip to reveal more tabs. Scrolling leaves the active session alone until another tab is selected. Selecting a session or resizing the terminal makes the strip follow the active tab again.
How did you verify your code works?
The renderer regression test clicks an older tab at 46 columns, reveals and selects the newest tab, then scrolls back with the other counter. It also covers wheel input, keeping the active session unchanged, and ignoring a mouse press that started outside the strip. All 74 focused tab tests and bun run check passed.
Screenshots / recordings

Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change works as described. In a TUI run with 8 tabs at 60 columns, clicking the ‹3 counter did nothing on the base, while with this PR it opens a picker listing the three hidden tabs. The focused session-tabs tests pass (15/15). The new overflow test fails against the base code, and there are no new type errors in session-tabs.tsx.
The public API is unchanged.
No blocking concerns. One small thing: the new-session branch in the picker's onSelect can't be reached, because when the new-session tab exists it is always the active, visible tab. You could drop it to keep the change minimal.


Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
JonasWortWal
changed the title
fix(tui): make hidden session tabs reachable with the mouse
fix(tui): scroll overflowing session tabs in place
Nov 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit works as described. In a TUI run with 8 tabs at 60 columns, clicking ‹3 or using the wheel over the strip scrolls the hidden tabs into view without changing the active session, and clicking a revealed tab selects it. On the base the same input does nothing. The focused session-tabs and tab-model tests pass.
My earlier point is addressed: the picker and its unreachable new-session branch are gone.
The public API is unchanged. adaptiveSessionTabLayout only gains an optional internal scrollStart parameter.
No new concerns.


Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest push only squashes the commits. The code is identical to the version I reviewed last time (same file tree, empty diff), so my earlier verdict stands: hidden tabs can be scrolled into view with the counters or the mouse wheel. The focused session-tabs tests still pass.
The public API is unchanged.
No new concerns.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|