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: Switched, dropdown menu. · Issue #63433 · anomalyco/opencode

Fix: Switched, dropdown menu. #63433

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
Fix: Switched, dropdown menu.#63433
Copy link
Labels
area/desktopDesktop apppending closeplatform/windowsWindowstriagingtype/bugSomething is brokenversion/v2OpenCode 2.x

Description

@OkOkYT
OkOkYT
opened on Nov 12, 2026
Issue body actions

Description

Fix

Bug OpenCode menus overlap when switching between menu items

Description

When opening different menu items in OpenCode Desktop, multiple dropdown menus remain open simultaneously and overlap each other.

Steps to reproduce

  1. Open the OpenCode menu.
  2. Hover over or click File.
  3. Open Window or Help without closing the previous submenu.
  4. Observe that multiple dropdown menus overlap.

Expected behavior

Only the currently selected submenu should remain visible. Previous menus should automatically close.

Actual behavior

Multiple submenus remain visible simultaneously, causing overlapping menu panels and an incorrect UI layout.

Environment

  • OS: Windows 11
  • App: OpenCode Desktop
  • Issue type: UI / Menu rendering bug
image (30)

Plugins

No response

OpenCode version

2.2.7

Steps to reproduce

No response

Screenshot

No response

Operating System

No response

Terminal

No response

Activity

  1. opencodejr commented on Nov 12, 2026

    @opencodejr
    opencodejrBot
    on Nov 12, 2026
    Contributor
    More actions

    Thanks for the report and the screenshot! I think this is a duplicate of #63095. That issue is about the same bug in the desktop app's titlebar menu (File / Edit / View / Go / Window / Help): submenus you opened earlier don't close, so several panels stack on top of each other. It has already been reproduced on 2.2.7.

    Possible duplicates and related issues, ordered by likelihood:

    • desktop: Menu bug #63095: the same bug, submenus stacking in the titlebar menu on 2.2.7 (reproduced). A fix has been proposed in PR fix(app): prevent desktop titlebar submenus from stacking #63289.
    • desktop: clicking another menubar tab leaves the previous dropdown open, so menu panels overlap #63249: the same overlap on Windows 11 / 2.2.7 when you click another menubar item while a dropdown is open.
    • desktop: menu submenus stack and stay open when the cursor leaves the parent item #63274: the same symptom when you hover across the menu items.
    • desktop: submenu closes when the pointer moves to its last item #59613: related but different. In the same menu, a submenu closes too early.

    I'm closing this issue now as a duplicate of #63095. If you have anything to add, such as other steps that trigger it, please post it on #63095. If your problem is actually different, reply here and this issue will be reopened.

  2. opencodejr
    closed this as a duplicateof desktop: Menu bug #63095 on Nov 12, 2026
  3. opencodejr
    added
    area/desktopDesktop app
    platform/windowsWindows
    type/bugSomething is broken
    version/v2OpenCode 2.x
    on Nov 12, 2026
  4. OkOkYT commented on Nov 12, 2026

    @OkOkYT
    OkOkYT
    on Nov 12, 2026
    Author
    More actions

    thanks,

  5. opencodejr
    reopened this on Nov 12, 2026
  6. opencodejr
    added
    pending close
    triaging
    on Nov 12, 2026
  7. opencodejr commented on Nov 12, 2026

    @opencodejr
    opencodejrBot
    on Nov 12, 2026
    Contributor
    More actions

    You're welcome! For updates on the overlapping menu bug, please follow #63095. If you have any extra details, such as other ways to trigger it, you can add them there. This issue will stay closed as a duplicate of #63095.

  8. OkOkYT
    changed the title [-]Fix: Siwtched dropdown menu.[/-] [+]Fix: Switched, dropdown menu.[/+] on Nov 12, 2026
  9. OkOkYT commented on Nov 12, 2026

    @OkOkYT
    OkOkYT
    on Nov 12, 2026
    Author
    More actions

    You're welcome! For updates on the overlapping menu bug, please follow #63095. If you have any extra details, such as other ways to trigger it, you can add them there. This issue will stay closed as a duplicate of #63095.

    fixed the dropdown menu opencode!
    i'm developer.

    great next time update opencode.
    electron_PmnWgOL9tw-ezgif com-video-to-gif-converter

    import { createSignal, For, onMount, type JSX } from "solid-js"
    import { Menu } from "@opencode/ui/menu"
    import { Icon } from "@opencode/ui/icon"
    import { IconButton } from "@opencode/ui/icon-button"
    
      let lastFocused: HTMLElement | undefined
      const language = useLanguage()
      const menubar = useMenubarItems()
    
      const [openSub, setOpenSub] = createSignal<string | undefined>()
    
      const toggleSub = (id: string, open: boolean) =>
        setOpenSub((current) => (open ? id : current === id ? undefined : current))
    
      const entries = (menu: DesktopMenu) =>
        desktopMenuWithPlugins(
          (menu.items ?? [])
            .filter((entry) => desktopMenuVisible(entry, "windows"))
        )
      })
    
      return (
        <Menu appearance="standard" gutter={4} modal={false} placement="bottom-start">
        <Menu appearance="standard" gutter={4} modal={false} placement="bottom-start" onOpenChange={(open) => !open && setOpenSub(undefined)}>
          <div
            data-component="desktop-icon-button"
            class="flex h-7 w-9 shrink-0 items-center justify-center rounded-[6px] px-1"
          >
              <Menu.Group>
                <Menu.GroupLabel class="desktop-app-menu-heading">OpenCode</Menu.GroupLabel>
                <For each={DESKTOP_MENU.filter((menu) => desktopMenuVisible(menu, "windows"))}>
                  {(menu) => (
                    <DesktopMenuSubmenu label={language.t(menu.labelKey)}>
                    <DesktopMenuSubmenu
                      label={language.t(menu.labelKey)}
                      open={openSub() === menu.id}
                      onOpenChange={(open) => toggleSub(menu.id, open)}
                    >
                      <For each={entries(menu)}>
                        {(item) => {
                          const entry = item.entry
    
        </Menu>
      )
    }
    
    function DesktopMenuSubmenu(props: { label: string; children: JSX.Element }) {
    function DesktopMenuSubmenu(props: {
      label: string
      open: boolean
      onOpenChange: (open: boolean) => void
      children: JSX.Element
    }) {
      return (
        <Menu.Sub>
        <Menu.Sub open={props.open} onOpenChange={props.onOpenChange}>
          <Menu.SubTrigger>{props.label}</Menu.SubTrigger>
          <Menu.Portal>
            <Menu.SubContent class="desktop-app-menu desktop-app-menu-sub">{props.children}</Menu.SubContent>
          </Menu.Portal>```
    
  10. opencodejr commented on Nov 12, 2026

    @opencodejr
    opencodejrBot
    on Nov 12, 2026
    Contributor
    More actions

    Thanks for the screenshot, the video and your patch! They show the same stacked submenus as #63095, so this issue stays closed as a duplicate of it.

    Your fix tracks which submenu is open and passes open / onOpenChange to each Menu.Sub. PR #63289 takes a similar approach: it keeps track of the active submenu in the titlebar menu itself, so only one stays open at a time. If your version handles a case that PR doesn't, please comment on #63289 or #63095 so the maintainers see it. You can also open your own pull request that links #63095. A code snippet in a closed issue is easy to miss.

  11. opencodejr
    closed this as a duplicateof desktop: Menu bug #63095 on Nov 12, 2026
  12. opencodejr commented on Nov 12, 2026

    @opencodejr
    opencodejrBot
    on Nov 12, 2026
    Contributor
    More actions

    I'm closing this issue now as a duplicate of #63095. Your screenshot and video show the same thing as that issue: in the desktop titlebar menu, submenus you opened earlier don't close, so the panels stack.

    Please follow #63095 for updates. If you want your patch considered, the best place for it is a pull request that links #63095, or a comment on PR #63289, which takes a similar approach. If you later see something different, please open a new issue. Thanks again for the report and the fix!

  13. OkOkYT commented on Nov 18, 2026

    @OkOkYT
    OkOkYT
    on Nov 18, 2026
    Author
    More actions

    Thanks. updated 2.3.2 fixed

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/desktopDesktop apppending closeplatform/windowsWindowstriagingtype/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.