Skip to content

Delete popup disappears when I attempt to hover the mouse over it #63541

Closed as duplicate

Description

@paperbenni

Description

Deletion popup disappears when I move my mouse over it

recording_20261112_143104.webm

Plugins

None

OpenCode version

2.2.7

Steps to reproduce

  1. Open Opencode Web (mine is with tunnel and the inbox layout in case that helps)
  2. Right click a session
  3. Move mouse onto the delete popup

Screenshot

recording_20261112_143104.webm

Operating System

Arch Linux

Terminal

Ghostty, Firefox for OpenCode web

Activity

  1. added
    area/web
    type/bug
    version/v2
    on Nov 12, 2026
  2. opencodejr commented on Nov 12, 2026

    @opencodejr
    Contributor

    Thanks for the report and the video. In your recording the right-click menu itself stays open. What closes is the Delete session confirmation dialog, as the mouse moves from the sidebar towards it.

    I tried this on 2.2.7 with opencode serve and Firefox (driven by Playwright, headless on Linux):

    1. Set the Inbox interface mode.
    2. Open a session.
    3. Right-click another session in the sidebar, then click Delete….
    4. Move the mouse over the overlay and onto the dialog.

    I also tried it with the sidebar collapsed and opened from the left edge, and with the session list updating while the dialog was open. Each time both the menu and the dialog stayed open, so I couldn't reproduce it yet.

    A few things would help narrow it down:

    • Add-ons: Does it still happen in a Firefox private window with add-ons disabled? Your Firefox context menu shows LeechBlock, a block-element tool and Obsidian Web Clipper.
    • Tunnel: Does it happen when you open the server directly, e.g. http://localhost:4096, instead of through the tunnel?
    • Running sessions: Was any session working (the model running) while the dialog was open?
    • Other dialogs: Does it happen every time, and does it also happen with other dialogs, such as the one from Archive or from Search sessions?
    • Console: Are there any errors in the browser console (F12 > Console) when the dialog disappears?

    You can reply here or edit the issue. If you edit it, please also leave a short comment so we know it has been updated.

  3. paperbenni commented on Nov 12, 2026

    @paperbenni
    Author

    Update: it appears the popup doesnt disappear, the z-order is messed up. If I open a file on the side, a small part of the popup is still visible in the empty space between the chat window and the file preview.

    recording_20261112_163559.webm

    happens on localhost as well as in Firefox Private mode (without the addons)

    I tested this in Brave-Origin as well and the issue doesnt happen there, seems to be Firefox specific

  4. opencodejr commented on Nov 12, 2026

    @opencodejr
    Contributor

    Thanks for the update and the second video. That pointed to the right cause.

    I reproduced this on 2.2.7 in Firefox on Linux, running headed against opencode serve on localhost:

    1. Set the Inbox interface mode.
    2. Open a session.
    3. Right-click another session in the sidebar and click Delete….
    4. Move the mouse over the chat panel.

    The Delete session dialog is not closed. It is still in the page and still receives clicks. Firefox draws the chat panel and the sidebar on top of it, so only the dimmed backdrop shows in the gaps between the panels. That matches what you saw next to the file preview. The recording and the first two screenshots below show this on 2.2.7.

    On the latest dev (1a85993), the dialog now stays visible over the chat. But after the mouse moves, the sidebar is still drawn above the dimmed backdrop (third screenshot), so the layering bug isn't fully gone there yet. I didn't test Brave or Chromium here.

    The script below reproduces it. Run it headed, since Firefox's headless screenshots don't show the problem.

    recording.mp4

    Screenshot

    Screenshot

    Screenshot

    Reproduction script (firefox-dialog-zorder.mjs)
    // anomalyco/opencode#63541: in Firefox the session "Delete session" dialog drops behind the app panels
    // once the pointer moves. Needs `opencode serve` running with a few sessions, and Firefox via Playwright.
    // Run headed under X (e.g. Xvfb :99) so the real composited screen can be grabbed with ffmpeg:
    //   DISPLAY=:99 HEADED=1 P=<server password> URL=http://127.0.0.1:4096 node z.mjs
    import { firefox, chromium } from "playwright"
    import { execSync, spawn } from "node:child_process"
    const P = process.env.P
    const URL = process.env.URL ?? "http://127.0.0.1:4096"
    const OUT = process.env.OUT ?? "/workspace/media"
    const BROWSER = process.env.BROWSER === "chromium" ? chromium : firefox
    const tag = process.env.TAG ?? (process.env.BROWSER ?? "firefox")
    const grab = (name) => {
      if (!process.env.DISPLAY) return
      execSync(`ffmpeg -loglevel error -y -f x11grab -video_size 1280x800 -i ${process.env.DISPLAY} -frames:v 1 ${OUT}/${tag}-${name}`)
    }
    const rec = process.env.DISPLAY
      ? spawn("ffmpeg", ["-loglevel", "error", "-y", "-f", "x11grab", "-framerate", "15", "-video_size", "1280x800", "-i", process.env.DISPLAY, "-pix_fmt", "yuv420p", `${OUT}/${tag}-repro.mp4`], { stdio: ["pipe", "inherit", "inherit"] })
      : undefined
    const b = await BROWSER.launch({ headless: !process.env.HEADED })
    const page = await b.newPage({ viewport: { width: 1280, height: 720 } })
    page.setDefaultTimeout(20000)
    console.log("start")
    await page.goto(URL + "/")
    await page.getByText("Use password").click()
    await page.fill("#server-connect-url", URL)
    await page.fill("#server-connect-password", P)
    await page.keyboard.press("Enter")
    await page.waitForTimeout(3000)
    await page.getByText("Settings", { exact: true }).first().click()
    await page.waitForTimeout(1000)
    await page.locator('[data-slot="interface-mode-option"]', { hasText: "Inbox" }).click()
    await page.keyboard.press("Escape")
    await page.waitForTimeout(1000)
    await page.locator('[data-slot="sidebar-inbox-item"]').first().click()
    await page.waitForTimeout(2000)
    const rows = page.locator('[data-slot="sidebar-inbox-item"]')
    const box = await rows.nth(1).boundingBox()
    const x = box.x + 40, y = box.y + box.height / 2
    await page.mouse.move(x, y, { steps: 10 })
    await page.mouse.click(x, y, { button: "right" })
    await page.waitForTimeout(800)
    const del = page.locator('[role="menuitem"]', { hasText: "Delete" })
    const tb = await del.boundingBox()
    await page.mouse.move(tb.x + tb.width / 2, tb.y + tb.height / 2, { steps: 15 })
    await page.waitForTimeout(500)
    await page.mouse.click(tb.x + tb.width / 2, tb.y + tb.height / 2)
    await page.waitForTimeout(1200)
    grab("1-dialog-open.png")
    const dlg = page.locator('[role="dialog"], [role="alertdialog"]').first()
    const db = await dlg.boundingBox()
    const top = () => page.evaluate(([px, py]) => {
      const el = document.elementFromPoint(px, py)
      return el ? `${el.tagName.toLowerCase()}[${[...el.attributes].filter((a) => a.name.startsWith("data-") || a.name === "role").map((a) => a.name + "=" + a.value).join(",")}] inDialog=${!!el.closest('[role="dialog"]')}` : "none"
    }, [db.x + db.width / 2, db.y + 20])
    console.log("dialog box", JSON.stringify(db))
    console.log("top element over dialog, before moving:", await top())
    if (process.env.DEBUG) await page.evaluate(() => { window.__m = []; new MutationObserver((ms) => { for (const m of ms) if (m.type === "attributes") { const t = m.target; window.__m.push((t.getAttribute("data-component") || t.getAttribute("data-slot") || t.tagName) + " " + m.attributeName + "=" + String(t.getAttribute(m.attributeName)).slice(0, 160)) } }).observe(document.body, { attributes: true, subtree: true }) })
    // Move the pointer from the sidebar over the chat panel and onto the dialog.
    await page.mouse.move(db.x + db.width / 2, db.y + db.height / 2, { steps: 40 })
    await page.waitForTimeout(1500)
    console.log("dialog still in DOM and isVisible():", await dlg.isVisible())
    console.log("top element over dialog, after moving:", await top())
    grab("2-after-move.png")
    if (process.env.DEBUG) console.log([...new Set(await page.evaluate(() => window.__m))].join("\n"))
    await page.waitForTimeout(1000)
    await b.close()
    if (rec) { rec.stdin.write("q"); await new Promise((r) => rec.on("close", r)) }

    Run it: bun firefox-dialog-zorder.mjs

  5. neriousy commented on Nov 23, 2026

    @neriousy
    Member

    Closing as a duplicate of #63156: same Firefox dialog disappearing on hover. Your repro script is really useful, please share it there too. Please follow that issue for updates and add any extra details there.

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/webplatform/linuxreproducedtype/bugversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions