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 — Terminal in VSCode Switches Sessions Underneath & Tab Nav Fails Clicks · Issue #67025 · anomalyco/opencode

Terminal in VSCode Switches Sessions Underneath & Tab Nav Fails Clicks #67025

New issue
Copy link
New issue
Copy link
Backlog
Backlog
Terminal in VSCode Switches Sessions Underneath & Tab Nav Fails Clicks#67025
Copy link
Labels
area/tuiTerminal interfacetriagingtype/bugSomething is brokenversion/v2OpenCode 2.x

Description

@old-square-eyes
old-square-eyes
opened on Nov 28, 2026
Issue body actions

Description

1. Session switches out silently

I have a concerning issue where if I run multiple sessions like in the screenshot, the session in one or more windows switches to a completely different Opencode session. I'll come back to authorise a command and sometimes mindlessly click and realise I'm working on another session completely to the session that existed previously in the open pane.

I thought I was loosing my mind. But sometimes it's an old one I have moved on from and didn't even have open. Furthermore I usually contain certain topics in the different window locations e.g. leftmost Backend work, middle Frontend work, and Right side, quick fixes/file edits. So I notice when things scramble. I haven't found a pattern. But it's not like I have restarted the host. It quite literally switches out from underneath you. Only thing I can think of is VSCode intercepting some key combo to tab away to another Opencode session per below.

2. Can't advance to right-most tab

Per the red boxes below I can't click on the right hand side arrow > to access newer TUI tabs. Unlike the prominent mouse capture problems Opencode seems to suffer from in other Issues, click still works on visible tabs. Yet I can't get to the rightmost tab no matter what I click in this area.

image

Plugins

No response

OpenCode version

opencode v2.4.2

Steps to reproduce

Long coding session, multiple panes. Eventually opencode session switches out in one or more panes with a (seemingly) random one.

Screenshot

As above

Operating System

Mac OD 27.2.1 (26B131)

Terminal

VSCode Opencode extension terminal wrapper.

Activity

  1. opencodejr commented on Nov 28, 2026

    @opencodejr
    opencodejrBot
    on Nov 28, 2026
    Contributor
    More actions

    Thanks for the report, @old-square-eyes!

    #2: can't reach the right-most tab. This looks like #66659 (newer session tabs hidden behind the right-hand overflow counter, and clicking the counter does nothing). There's an open pull request for it, #66660, which makes the counters clickable and lets you scroll the tab strip with the mouse wheel. In the meantime, the keyboard can still reach hidden tabs:

    • Ctrl+Tab or Alt+Down: next open session tab
    • Ctrl+Shift+Tab or Alt+Up: previous open session tab

    #1: a pane silently switches to another session. We need a bit more information before we can try to reproduce this:

    • Your OpenCode version (opencode --version), your OS, and how you installed OpenCode.
    • Your setup: is each VS Code terminal pane a separate opencode process, or do you use one TUI with several session tabs (or both)?
    • When it happens, does the pane's tab bar show the session it switched to as a tab? Was that session already open in another pane or tab?
    • Anything you remember doing just before (keys pressed, clicking into the pane, switching VS Code windows), even if it seems unrelated.

    You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know when you're done.

    Related issues, ordered by likelihood:

    • tui: hidden session tabs are unreachable with the mouse #66659: same as your Roadmap & Existing Issues #2, hidden session tabs unreachable with the mouse (fix in progress in fix(tui): scroll overflowing session tabs in place #66660)
    • desktop: clicking compressed session tabs doesn't switch when many tabs are open #61396: a similar tab overflow problem, but in the desktop app
  2. opencodejr
    added
    area/tuiTerminal interface
    triaging
    type/bugSomething is broken
    version/v2OpenCode 2.x
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tuiTerminal interfacetriagingtype/bugSomething is brokenversion/v2OpenCode 2.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.