GeezerVison is showing github.com — Fix: Switched, dropdown menu. · Issue #63433 · anomalyco/opencode
Fix: Switched, dropdown menu. #63433DescriptionDescription
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
- Open the OpenCode menu.
- Hover over or click File.
- Open Window or Help without closing the previous submenu.
- 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
Plugins
No response
OpenCode version
2.2.7
Steps to reproduce
No response
Screenshot
No response
Operating System
No response
Terminal
No response Activityopencodejr commented on Nov 12, 2026 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:
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.
OkOkYT commented on Nov 12, 2026 opencodejr commented on Nov 12, 2026 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.
changed the title [-]Fix: Siwtched dropdown menu.[/-] [+]Fix: Switched, dropdown menu.[/+] on Nov 12, 2026OkOkYT commented on Nov 12, 2026
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.

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>```
opencodejr commented on Nov 12, 2026 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.
opencodejr commented on Nov 12, 2026 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!
OkOkYT commented on Nov 18, 2026 Thanks. updated 2.3.2 fixed
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|