Skip to content

Opencode Desktop's Close button is easily misclicked when trying to switch to another session tab #52044

Closed as not planned

Description

@zzs1020

Description

When there are too many session tabs or a small app interface, hover on session tabs shows a close button and it's easily to misclick when i mean to switch. Please consider how Chrome handle this by only allowing to close focused tab

Plugins

No response

OpenCode version

1.18.33

Steps to reproduce

  1. add 8 tab
  2. shrink window
  3. switch to another tab

Screenshot and/or share link

No response

Operating System

macos 26.7

Terminal

No response

Activity

  1. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

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

    • #50196: Reports that tabs become difficult to switch without accidentally closing them when many projects are open.
  2. daruma-bo commented on Oct 8, 2026

    @daruma-bo

    I’m experiencing the same problem on Windows. With many tabs open, hovering over a compact tab puts the close button directly over the project icon—the exact spot users aim for to select the tab. This repeatedly causes accidental closures during normal navigation.

    The installed stylesheet explicitly centers [data-slot="tab-close"] inside @container (max-width: 64px) using left: 50% and transform: translateX(-50%).

    Please keep the close button at the right edge, with a separate hit target from the project icon. If a compact tab cannot fit both safely, show the close button only on the active tab. Selecting another tab should never turn into closing it just because the pointer entered the tab.

  3. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions