You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Delete popup disappears when I attempt to hover the mouse over it #63541
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):
Set the Inbox interface mode.
Open a session.
Right-click another session in the sidebar, then click Delete….
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.
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
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:
Set the Inbox interface mode.
Open a session.
Right-click another session in the sidebar and click Delete….
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
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.mjsimport{firefox,chromium}from"playwright"import{execSync,spawn}from"node:child_process"constP=process.env.PconstURL=process.env.URL??"http://127.0.0.1:4096"constOUT=process.env.OUT??"/workspace/media"constBROWSER=process.env.BROWSER==="chromium" ? chromium : firefoxconsttag=process.env.TAG??(process.env.BROWSER??"firefox")constgrab=(name)=>{if(!process.env.DISPLAY)returnexecSync(`ffmpeg -loglevel error -y -f x11grab -video_size 1280x800 -i ${process.env.DISPLAY} -frames:v 1 ${OUT}/${tag}-${name}`)}constrec=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"]})
: undefinedconstb=awaitBROWSER.launch({headless: !process.env.HEADED})constpage=awaitb.newPage({viewport: {width: 1280,height: 720}})page.setDefaultTimeout(20000)console.log("start")awaitpage.goto(URL+"/")awaitpage.getByText("Use password").click()awaitpage.fill("#server-connect-url",URL)awaitpage.fill("#server-connect-password",P)awaitpage.keyboard.press("Enter")awaitpage.waitForTimeout(3000)awaitpage.getByText("Settings",{exact: true}).first().click()awaitpage.waitForTimeout(1000)awaitpage.locator('[data-slot="interface-mode-option"]',{hasText: "Inbox"}).click()awaitpage.keyboard.press("Escape")awaitpage.waitForTimeout(1000)awaitpage.locator('[data-slot="sidebar-inbox-item"]').first().click()awaitpage.waitForTimeout(2000)constrows=page.locator('[data-slot="sidebar-inbox-item"]')constbox=awaitrows.nth(1).boundingBox()constx=box.x+40,y=box.y+box.height/2awaitpage.mouse.move(x,y,{steps: 10})awaitpage.mouse.click(x,y,{button: "right"})awaitpage.waitForTimeout(800)constdel=page.locator('[role="menuitem"]',{hasText: "Delete"})consttb=awaitdel.boundingBox()awaitpage.mouse.move(tb.x+tb.width/2,tb.y+tb.height/2,{steps: 15})awaitpage.waitForTimeout(500)awaitpage.mouse.click(tb.x+tb.width/2,tb.y+tb.height/2)awaitpage.waitForTimeout(1200)grab("1-dialog-open.png")constdlg=page.locator('[role="dialog"], [role="alertdialog"]').first()constdb=awaitdlg.boundingBox()consttop=()=>page.evaluate(([px,py])=>{constel=document.elementFromPoint(px,py)returnel ? `${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:",awaittop())if(process.env.DEBUG)awaitpage.evaluate(()=>{window.__m=[];newMutationObserver((ms)=>{for(constmofms)if(m.type==="attributes"){constt=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.awaitpage.mouse.move(db.x+db.width/2,db.y+db.height/2,{steps: 40})awaitpage.waitForTimeout(1500)console.log("dialog still in DOM and isVisible():",awaitdlg.isVisible())console.log("top element over dialog, after moving:",awaittop())grab("2-after-move.png")if(process.env.DEBUG)console.log([...newSet(awaitpage.evaluate(()=>window.__m))].join("\n"))awaitpage.waitForTimeout(1000)awaitb.close()if(rec){rec.stdin.write("q");awaitnewPromise((r)=>rec.on("close",r))}
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.
Activity
opencodejr commentedon Nov 12, 2026
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 serveand Firefox (driven by Playwright, headless on Linux):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:
http://localhost:4096, instead of through the tunnel?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.
paperbenni commentedon Nov 12, 2026
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
opencodejr commentedon Nov 12, 2026
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 serveon localhost: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
Reproduction script (firefox-dialog-zorder.mjs)
Run it:
bun firefox-dialog-zorder.mjsneriousy commentedon Nov 23, 2026
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.