GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(tui): scroll overflowing session tabs in place by JonasWortWal · Pull Request #66660 · anomalyco/opencode

Conversation

@JonasWortWal

@JonasWortWal JonasWortWal commented Nov 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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

Terminal frames showing the tab bar before scrolling, after scrolling, and after selecting the newest tab

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.

All reactions
opencodejr[bot]
opencodejr Bot reviewed Nov 26, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Before

After

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@JonasWortWal
JonasWortWal marked this pull request as draft November 26, 2026 19:44
@JonasWortWal 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
@JonasWortWal
JonasWortWal marked this pull request as ready for review November 26, 2026 19:58
opencodejr[bot]
opencodejr Bot reviewed Nov 26, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Before

After

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@JonasWortWal
fix(tui): scroll overflowing session tabs in place
f54f238
@JonasWortWal
JonasWortWal force-pushed the tab-overflow branch from 09d5943 to f54f238 Compare November 26, 2026 20:44
opencodejr[bot]
opencodejr Bot reviewed Nov 26, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
@opencodejr opencodejr Bot mentioned this pull request Nov 28, 2026
Terminal in VSCode Switches Sessions Underneath & Tab Nav Fails Clicks #67025
Open

This branch has not been deployed

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

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

tui: hidden session tabs are unreachable with the mouse

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@JonasWortWal
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.